facebook / facebook/duckling

inconsistent parsing for time with numbers

未關閉
#13 3 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
bug help wanted
主要語言
Haskell
星號
4.3k
分支
740
PR 合併指標
30 天內沒有已合併 PR

描述

this one is just wrong
```bash
$ curl -s -XPOST http://0.0.0.0:8000/parse --data "text=the second sunday of October last year" | jq .
[
{
"dim": "time",
"body": "the second sunday of October last year",
"value": "{\"values\":[],\"value\":\"2016-10-02T00:00:00.000-07:00\",\"grain\":\"day\",\"type\":\"value\"}",
"start": 0,
"end": 38
}
]
```

this one gets both parts right, but why did just changing the one word change so much of the parsing?
```bash
$ curl -s -XPOST http://0.0.0.0:8000/parse --data "text=the second thursday of October last year" | jq .
[
{
"dim": "time",
"body": "the second thursday of October",
"value": "{\"values\":[{\"value\":\"2017-10-12T00:00:00.000-07:00\",\"grain\":\"day\",\"type\":\"value\"}],\"value\":\"2017-10-12T00:00:00.000-07:00\",\"grain\":\"day\",\"type\":\"value\"}",
"start": 0,
"end": 30
},
{
"dim": "time",
"body": "thursday of October last year",
"value": "{\"values\":[],\"value\":\"2016-10-06T00:00:00.000-07:00\",\"grain\":\"day\",\"type\":\"value\"}",
"start": 11,
"end": 40
}
]
```

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。