duckling_old
duckling_old copied to clipboard
recognition of multiple date formats
support for multiple date formats
query: today or tomorrow
present output: tomorrow
required output: today , tomorrow
query: since I am busy on monday , call me on tuesday present output: monday required output: monday,tuesday
If you use Wit and you train with enough example, it should be able to return both
{
"msg_id": "aa2ab5cd-72d1-4963-8388-3fec96875dc0",
"_text": "fly today or tomorrow",
"outcomes": [
{
"_text": "fly today or tomorrow",
"confidence": 0.8,
"intent": "fly",
"entities": {
"datetime": [
{
"confidence": 0.9989122246888319,
"type": "value",
"value": "2016-09-08T00:00:00.000-07:00",
"grain": "day",
"values": [
{
"type": "value",
"value": "2016-09-08T00:00:00.000-07:00",
"grain": "day"
}
]
},
{
"confidence": 0.993507145502623,
"type": "value",
"value": "2016-09-09T00:00:00.000-07:00",
"grain": "day",
"values": [
{
"type": "value",
"value": "2016-09-09T00:00:00.000-07:00",
"grain": "day"
}
]
}
]
}
}
],
"stats": {
"total_time": 798
},
"WARNING": "DEPRECATED"
}