facebook / facebook/duckling

Date range not recognized at all, mistakenly recognized phone number and seconds

Open
#653 3 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: `01.07.2021 - 30.06.2026`
Command
```bash
curl -XPOST http://0.0.0.0:8000/parse --data 'locale=fr_CH&text="01.07.2021 - 30.06.2026"'
```
Current erroneous output:
```json
[
{
"body": "01.07.2021 - 30.06.2026",
"dim": "phone-number",
"end": 24,
"latent": false,
"start": 1,
"value": {
"type": "value",
"value": "0107202130062026"
}
},
{
"body": "2026\"",
"dim": "duration",
"end": 25,
"latent": false,
"start": 20,
"value": {
"normalized": {
"unit": "second",
"value": 2026
},
"second": 2026,
"type": "value",
"unit": "second",
"value": 2026
}
}
]
```

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.