duckling_old icon indicating copy to clipboard operation
duckling_old copied to clipboard

Decimals beyond tenth position`

Open taeold opened this issue 8 years ago • 1 comments

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?

taeold avatar Mar 02 '16 07:03 taeold

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

l5t avatar Mar 02 '16 16:03 l5t