facebook / duckling

Language, engine, and tooling for expressing, testing, and evaluating composable language rules on input strings.
Other
4.05k stars 720 forks source link

Date not recognized #654

Open belamenso opened 3 years ago

belamenso commented 3 years ago

Offending input: 01.07.2021 Command:

curl -XPOST http://0.0.0.0:8000/parse --data 'locale=fr_CH&text="01.07.2021"'

Current output:

[
    {
        "body": "01.07.2021",
        "dim": "phone-number",
        "end": 11,
        "latent": false,
        "start": 1,
        "value": {
            "type": "value",
            "value": "01072021"
        }
    },
    {
        "body": "2021\"",
        "dim": "duration",
        "end": 12,
        "latent": false,
        "start": 7,
        "value": {
            "normalized": {
                "unit": "second",
                "value": 2021
            },
            "second": 2021,
            "type": "value",
            "unit": "second",
            "value": 2021
        }
    }
]