How to get the date extracted with duckling?

Hi everyone,

Related to my other previously opened question (Extracting dates using supervised_embeddings)

I have now added the duckling component to my config.yml

pipeline:

  • name: “WhitespaceTokenizer”
  • name: “RegexFeaturizer”
  • name: “CRFEntityExtractor”
  • name: “EntitySynonymMapper”
  • name: “CountVectorsFeaturizer”
  • name: “EmbeddingIntentClassifier”
  • name: “DucklingHTTPExtractor” url: “http://localhost:8000” dimensions: [“time”] locale: “de_DE” timezone: “Europe/Berlin”

And run a docker container.

In order to extract the date from the user input. How can I access the entity? Assuming the same scenario from the other question.

Thanks in advance, Timothy

The extracted entity will be available to use by name time. If you want to access it as a slot, declare a slot called time and use its value.

what if we have 2 different dates slots in “forms”… say one departure date and the other for arrival. If i use “time” slot to set these “date slots”, then which one will get set? departure or arrival?