# RasaHQ/rasa rasa chatbot duckling implementation issue

**URL:** <https://forum.rasa.com/t/rasahq-rasa-rasa-chatbot-duckling-implementation-issue/14222>\
**Category:** Rasa Open Source\
**Created:** [August 12, 2019, 8:01am UTC](https://forum.rasa.com/t/rasahq-rasa-rasa-chatbot-duckling-implementation-issue/14222 "2019-08-12T08:01:13Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![IKhushi](https://avatars.discourse-cdn.com/v4/letter/i/7bcc69/32.png) [@IKhushi](https://forum.rasa.com/u/IKhushi)\
**Post date:** [August 12, 2019, 8:01am UTC](https://forum.rasa.com/t/rasahq-rasa-rasa-chatbot-duckling-implementation-issue/14222/1 "2019-08-12T08:01:13Z")

</div>

I’m currently working on rasa chatbot , I can install duckling but can not implement it in for time and date entity so pls help me if any one had already use it. thank you

---

<div class="post-metadata">

**Author:** ![amn41](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/amn41/32/20_2.png) [@amn41](https://forum.rasa.com/u/amn41)\
**Post date:** [August 12, 2019, 9:47am UTC](https://forum.rasa.com/t/rasahq-rasa-rasa-chatbot-duckling-implementation-issue/14222/2 "2019-08-12T09:47:35Z")

</div>

Hi @IKhushi - I’m afraid I’ll need a bit more information to help you. What have you tried so far? What are the steps you are following, and what is the error you encounter?

---

<div class="post-metadata">

**Author:** ![IKhushi](https://avatars.discourse-cdn.com/v4/letter/i/7bcc69/32.png) [@IKhushi](https://forum.rasa.com/u/IKhushi)\
**Post date:** [August 12, 2019, 11:06am UTC](https://forum.rasa.com/t/rasahq-rasa-rasa-chatbot-duckling-implementation-issue/14222/3 "2019-08-12T11:06:35Z")

</div>

I’ve added time entity in my data and train it. after that when I test it with message of time in my API it return empty entity. ########## nlu.md

# intent:block\_unblock

- block thursday
- unblock tommorow
- block day after tommorow
- unblock next week
- block today

########### config.py pipeline: supervised\_embeddings

-name: ner\_duckling\_http

- url: [http://localhost:8000](http://localhost:8000)
- dimensions: [“time”,“day”]
- locale: en\_US
- timezone: Europe/Berlin

#### when I’ll test the api it will give warning :

rasa.nlu.extractors.crf\_entity\_extractor - extracted in crf\_entity extarctor

---

<div class="post-metadata">

**Author:** ![amn41](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/amn41/32/20_2.png) [@amn41](https://forum.rasa.com/u/amn41)\
**Post date:** [August 12, 2019, 11:12am UTC](https://forum.rasa.com/t/rasahq-rasa-rasa-chatbot-duckling-implementation-issue/14222/4 "2019-08-12T11:12:15Z")

</div>

the problem is with your `config.py` - since you provide the value `supervised_embeddings`, this specifies a _whole_ pipeline. Try removing that so it’s just:

```auto
pipeline:
- name: ner_duckling_http
  - url: http://localhost:8000
  - dimensions: ["time", "day"]
  - locale: en_US
  - timezone: Europe/Berlin

```

and then add back the other pieces you need,

```auto
- name: "CountVectorsFeaturizer"
- name: "EmbeddingIntentClassifier"
- name: "ner_duckling_http"
...

```

---

<div class="post-metadata">

**Author:** ![IKhushi](https://avatars.discourse-cdn.com/v4/letter/i/7bcc69/32.png) [@IKhushi](https://forum.rasa.com/u/IKhushi)\
**Post date:** [August 12, 2019, 11:26am UTC](https://forum.rasa.com/t/rasahq-rasa-rasa-chatbot-duckling-implementation-issue/14222/5 "2019-08-12T11:26:59Z")

</div>

I’ve tried

pipeline:

- name: ner\_duckling\_http
  - url: [http://localhost:8000](http://localhost:8000)
  - dimensions: [“time”, “day”]
  - locale: en\_US
  - timezone: Europe/Berlin

in config file but gives error :

The config file ‘config.yml’ is missing mandatory parameters: ‘pipeline’. Add missing parameters to config file and try again.

---

<div class="post-metadata">

**Author:** ![IKhushi](https://avatars.discourse-cdn.com/v4/letter/i/7bcc69/32.png) [@IKhushi](https://forum.rasa.com/u/IKhushi)\
**Post date:** [August 12, 2019, 12:38pm UTC](https://forum.rasa.com/t/rasahq-rasa-rasa-chatbot-duckling-implementation-issue/14222/6 "2019-08-12T12:38:27Z")

</div>

## after modification in config file

{ “intent”: { “name”: “block\_unblock”, “confidence”: 0.9578648806 }, “entities”: [{ “start”: 0, “end”: 5, “value”: “block”, “entity”: “blockType”, “confidence”: 0.9478110737, “extractor”: “CRFEntityExtractor” }, { “start”: 6, “end”: 14, “value”: “tommorow”, “entity”: “targetTime”, “confidence”: 0.8920832596, “extractor”: “CRFEntityExtractor” }, { “start”: 6, “end”: 14, “text”: “tommorow”, “value”: “2019-08-13T00:00:00.000-07:00”, “confidence”: 1, “additional\_info”: { “values”: [ { “value”: “2019-08-13T00:00:00.000-07:00”, “grain”: “day”, “type”: “value” }], “value”: “2019-08-13T00:00:00.000-07:00”, “grain”: “day”, “type”: “value” }, “entity”: “time”, “extractor”: “DucklingHTTPExtractor” } ], “intent\_ranking”: [ { “name”: “block\_unblock”, “confidence”: 0.9578648806 } }

but duckling returns entity name as **time** instead of **targetTime** of that value from trained data.So, now what should I do to get entity value from duckling?

---

<div class="post-metadata">

**Author:** ![amn41](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/amn41/32/20_2.png) [@amn41](https://forum.rasa.com/u/amn41)\
**Post date:** [August 12, 2019, 2:56pm UTC](https://forum.rasa.com/t/rasahq-rasa-rasa-chatbot-duckling-implementation-issue/14222/7 "2019-08-12T14:56:50Z")

</div>

duckling is a static tool, so it doesn’t look at your training data at all. You can map the `time` to `targetTime using an entity synonym. You'll have to add`ner\_synonyms` to your pipeline as well

---

<div class="post-metadata">

**Author:** ![IKhushi](https://avatars.discourse-cdn.com/v4/letter/i/7bcc69/32.png) [@IKhushi](https://forum.rasa.com/u/IKhushi)\
**Post date:** [August 13, 2019, 4:13am UTC](https://forum.rasa.com/t/rasahq-rasa-rasa-chatbot-duckling-implementation-issue/14222/8 "2019-08-13T04:13:36Z")

</div>

Alan, thank you so much for your support and guidance.
