facebook / facebook/duckling

Year range not recognized in French

Open
#655 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
4.3k
Forks
740
PR merge metrics
No merged PRs in 30d

Description

Offending input: `2011 à aujourd'hui` (2011 to today)
Command:
```bash
curl -XPOST http://0.0.0.0:8000/parse --data 'locale=fr_CH&text="2011 à aujourd\'hui"'
```
Incorrect output:
```json
[
{
"body": "2011",
"dim": "number",
"end": 5,
"latent": false,
"start": 1,
"value": {
"type": "value",
"value": 2011
}
},
{
"body": "2011",
"dim": "time",
"end": 5,
"latent": false,
"start": 1,
"value": {
"grain": "year",
"type": "value",
"value": "2011-01-01T00:00:00.000-08:00",
"values": [
{
"grain": "year",
"type": "value",
"value": "2011-01-01T00:00:00.000-08:00"
}
]
}
},
{
"body": "aujourd'hui",
"dim": "time",
"end": 19,
"latent": false,
"start": 8,
"value": {
"grain": "day",
"type": "value",
"value": "2021-09-04T00:00:00.000-07:00",
"values": [
{
"grain": "day",
"type": "value",
"value": "2021-09-04T00:00:00.000-07:00"
}
]
}
}
]
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.