# Duckling fail to extract

**URL:** <https://forum.rasa.com/t/duckling-fail-to-extract/25005>\
**Category:** Rasa Open Source\
**Created:** [February 19, 2020, 11:44am UTC](https://forum.rasa.com/t/duckling-fail-to-extract/25005 "2020-02-19T11:44:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![WilliamG](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/williamg/32/6784_2.png) [@WilliamG](https://forum.rasa.com/u/WilliamG)\
**Post date:** [February 19, 2020, 11:44am UTC](https://forum.rasa.com/t/duckling-fail-to-extract/25005/1 "2020-02-19T11:44:14Z")

</div>

I’m trying to implement the duckling pipeline to extract some dates, but I have some trouble doing it. For starters I’m just trying to extract a single date and print the formatted version of it to the user.

**Pipeline:**

```auto
pipeline: 
  - name: "WhitespaceTokenizer"
  - name: "CRFEntityExtractor"
  - name: "EntitySynonymMapper"
  - name: "CountVectorsFeaturizer"
  - name: "EmbeddingIntentClassifier"
  
  - name: DucklingHTTPExtractor
    url: http://localhost:8000
    dimensions:
      - time

```

**Domain**

```auto
intents:
  - test_duckling

entities:
  - time

slots:
  time:
    type: unfeaturized

actions:
  - utter_confirm_time

templates:
  utter_confirm_time:
    - text: "the date is: {time}"

```

**nlu**

```auto
## intent:test_duckling
- the date is [tomorrow](time)
- i will leave [in two weeks](time)
- i'm traveling on [monday](time)
- i am leaving the [25th](time)
....

```

**stories**

```auto
## test duckling
 * test_duckling
    - utter_confirm_time

```

If I run ‘rasa shell nlu’ I can successfully extracts dates, but if I only run rasa shell the formated time should be printed from the actrion ‘utter\_confirm\_time’ but instead all that is printed “the date is: None”. Why is this happening? Am I missing something?

Thanks!

---

<div class="post-metadata">

**Author:** ![WilliamG](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/williamg/32/6784_2.png) [@WilliamG](https://forum.rasa.com/u/WilliamG)\
**Post date:** [February 19, 2020, 2:18pm UTC](https://forum.rasa.com/t/duckling-fail-to-extract/25005/2 "2020-02-19T14:18:24Z")

</div>

I solved it by not defining the enitiy time in the domain

---

<div class="post-metadata">

**Author:** ![faiza\_conte](https://avatars.discourse-cdn.com/v4/letter/f/74df32/32.png) [@faiza\_conte](https://forum.rasa.com/u/faiza_conte)\
**Post date:** [November 8, 2020, 12:32pm UTC](https://forum.rasa.com/t/duckling-fail-to-extract/25005/3 "2020-11-08T12:32:05Z")

</div>

hey @WilliamG does duckling works for you for extracting name…i cant extract name tho
