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 摘要。