How to extract "a" as 1, "half" as 0.5 for ducklingEntityExtractor

I am writing an ordering bot. So, the customers’ messages may look like this: “I want a bottle of Gin, half case of sauvignon blanc”

in config.yml:

i can extract the number, but i can’t extract “a” and “half.”

i want it to extract “a” and “half” as numbers of 1 and 0.5

what can i do?

thx

Hey @carlhung

Have you tried using Volume dimension?

what is that?

I am newbie of the framework

Hey @carlhung

The docs about duckling components are here! Dimentions are the domains the duckling operates on!