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

Swiss phone number format not recognized [FR] #656

Open belamenso opened 3 years ago

belamenso commented 3 years ago

Offending input: Téléphone : 021/821’51’08 Command:

curl -XPOST http://0.0.0.0:8000/parse --data 'locale=fr_CH&text="Téléphone : 021/821’51’08"'

Current output:

[
    {
        "body": "021/821",
        "dim": "number",
        "end": 20,
        "latent": false,
        "start": 13,
        "value": {
            "type": "value",
            "value": 0.025578562728380026
        }
    },
    {
        "body": "51",
        "dim": "number",
        "end": 23,
        "latent": false,
        "start": 21,
        "value": {
            "type": "value",
            "value": 51
        }
    },
    {
        "body": "08\"",
        "dim": "duration",
        "end": 27,
        "latent": false,
        "start": 24,
        "value": {
            "normalized": {
                "unit": "second",
                "value": 8
            },
            "second": 8,
            "type": "value",
            "unit": "second",
            "value": 8
        }
    }
]
belamenso commented 3 years ago

The phrase Téléphone : 021/8215108 is also unrecognized.