facebook / duckling

Language, engine, and tooling for expressing, testing, and evaluating composable language rules on input strings.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

number/IT: wrong parsing for values greater than 99

riccardodebenedictis opened this issue · 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

[]