duckling_old
duckling_old copied to clipboard
Decimals beyond tenth position`
It appears that duckling cannot parse simple decimals beyond the tenth position, e.g.
=> (p/parse :en$core "one point one two three" [:number])
({:end 17,
:start 14,
:value {:type "value", :value 2},
:body "two",
:dim :number}
{:end 23,
:start 18,
:value {:type "value", :value 3},
:body "three",
:dim :number}
{:end 13,
:start 0,
:value {:type "value", :value 1.1},
:body "one point one",
:dim :number})
Is there a way to parse decimals in duckling that I'm unaware of?
You're right, duckling can currently parse 1.123 but not "one point one two three". We would either need to update the rule "number dot number" or update our speech engine to return 1.123