duckling_old icon indicating copy to clipboard operation
duckling_old copied to clipboard

recognition of multiple date formats

Open coolguy456 opened this issue 8 years ago • 1 comments

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

coolguy456 avatar Sep 08 '16 09:09 coolguy456

If you use Wit and you train with enough example, it should be able to return both

image

{
  "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"
}

l5t avatar Sep 08 '16 15:09 l5t