duckling icon indicating copy to clipboard operation
duckling copied to clipboard

number/IT: wrong parsing for values greater than 99

Open riccardodebenedictis opened this issue 3 years ago • 0 comments

Italian number greater than 99 are not recognized

Example:

curl -XPOST http://0.0.0.0:8000/parse --data 'locale=it_IT&text=novantanove' correctly recognizes 99

[
    {
        "body": "novantanove",
        "start": 0,
        "value": {
            "value": 99,
            "type": "value"
        },
        "end": 11,
        "dim": "number",
        "latent": false
    }
]

on the contrary

curl -XPOST http://0.0.0.0:8000/parse --data 'locale=it_IT&text=cento' returns an empty array

[]

riccardodebenedictis avatar Nov 17 '21 11:11 riccardodebenedictis