facebook/duckling

Different results for facebook/duckling local binary and duckling.wit.ai

Closed this issue · 2 comments

I compiled the duckling binary from the facebook/duckling repo and then tested the local duckling. My utterance is:
"Can you please show the pressure values for Limpet 9 from 8 April to 2 June 2019"

With Local duckling tool, the detected text is "9 from 8 April to 2 June 2019" which is incorrect as the 9 is extra here. See below for more details.

{
      "start": 50,
      "end": 80,
      "text": "9 from 8 April to  2 June 2019",
      "value": "2019-04-08T09:00:00.000-07:00",
      "confidence": 1.0,
      "additional_info": {
        "values": [
          {
            "value": "2019-04-08T09:00:00.000-07:00",
            "grain": "hour",
            "type": "value"
          },
          {
            "value": "2019-04-08T21:00:00.000-07:00",
            "grain": "hour",
            "type": "value"
          },
          {
            "value": "2019-04-09T09:00:00.000-07:00",
            "grain": "hour",
            "type": "value"
          }
        ],
        "value": "2019-04-08T09:00:00.000-07:00",
        "grain": "hour",
        "type": "value"
      },
      "entity": "time",
      "extractor": "DucklingHTTPExtractor"
    }

However, With duckling.wit.ai the result is correct. See the image below:

Capture

Any help is appreciated.
Thanks.

The website is still using the legacy Clojure version; we haven't had the chance to prioritize wiring up the Haskell library (#353).
Keeping this one open as a bug.

Closing in favour of #589 (tracking issue for all bugs related to this)