duckling icon indicating copy to clipboard operation
duckling copied to clipboard

Swiss phone number format not recognized [FR]

Open belamenso opened this issue 3 years ago • 1 comments

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 avatar Sep 05 '21 12:09 belamenso

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

belamenso avatar Sep 05 '21 13:09 belamenso