Hello, I was able to setup duckling and made sure its working.
However, when the Rasa extracted dates, CRFEntityExtractor is used instead and the result is wrong:
-
confidence: 0.8715912209
-
end: 23
-
entity: “date_jobdate”
-
extractor: “CRFEntityExtractor”
-
processors: Array(1)
-
0: “EntitySynonymMapper”
-
length: 1
-
start: 15
-
value: “2019-06-14T00:00:00.000-04:00”
The text is “I want to move tomorrow”
It pickups tomorrow but convert it to the wrong date since tomorrow is 2019-06-27
I have Duckling in the pipeline:
pipeline:
- name: “SpacyNLP”
- name: “SpacyTokenizer”
- name: “SpacyFeaturizer”
- name: “SklearnIntentClassifier”
- name: “CRFEntityExtractor”
- name: “EntitySynonymMapper”
- name: “RegexFeaturizer”
- name: “DucklingHTTPExtractor” url: “http://emover.ddns.net:8000” locale: “en-US” timezone:“US/Eastern”
But it doesn’t use duckling to extract data If I use duckling directly I’m getting correct parsing: [ { “body”: “tomorrow”, “start”: 15, “value”: { “values”: [ { “value”: “2019-06-27T00:00:00.000-07:00”, “grain”: “day”, “type”: “value” } ], “value”: “2019-06-27T00:00:00.000-07:00”, “grain”: “day”, “type”: “value” }, “end”: 23, “dim”: “time”, “latent”: false } ]
Please help