Reputation: 1823
I’m trying to extract entities using `DucklingHTTPExtractor. Here is the relevant code:
pipeline:
- name: "SpacyNLP"
- name: "SpacyTokenizer"
- name: "RegexFeaturizer"
- name: "SpacyFeaturizer"
- name: "CRFEntityExtractor"
- name: "EntitySynonymMapper"
- name: "SklearnIntentClassifier"
- name: "DucklingHTTPExtractor"
# url of the running duckling server
url: "http://localhost:8000"
# dimensions to extract
dimensions: ["email", "time", "date", "amount-of-money", "distance"]
# allows you to configure the locale, by default the language is
# used
locale: "NL_Nothing"
# if not set the default timezone of Duckling is going to be used
# needed to calculate dates from relative expressions like "tomorrow"
timezone: "US/Pacific"
Domain:
intents:
- input_date
entities:
- date
slots:
date:
type: unfeaturized
templates:
utter_date:
- text: '{date}'
Stories:
## test
* input_date{"date" : "tomorrow"}
- utter_date
Duckling server is running on 8000.
When i enter “tomorrow” - the bot sets the date slot to “tomorrow”.
How do i make duckling set it to the tomorrow’s date :
Wednesday, 21 August 2019
as it does here : https://duckling.wit.ai/
Thanks!
Upvotes: 3
Views: 2359
Reputation: 778
To make it work, make sure you have the following things done:
Upvotes: 0