# Entity with typo being recognized and set (DIET)

**URL:** <https://forum.rasa.com/t/entity-with-typo-being-recognized-and-set-diet/27410>\
**Category:** Rasa Open Source\
**Created:** [April 13, 2020, 9:44am UTC](https://forum.rasa.com/t/entity-with-typo-being-recognized-and-set-diet/27410 "2020-04-13T09:44:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![k1m](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/k1m/32/8518_2.png) [@k1m](https://forum.rasa.com/u/k1m)\
**Post date:** [April 13, 2020, 9:44am UTC](https://forum.rasa.com/t/entity-with-typo-being-recognized-and-set-diet/27410/1 "2020-04-13T09:44:50Z")

</div>

- Rasa X 0.27.3.
- Rasa 1.8.0.
- Linux (ubuntu 18.04).

```auto
pipeline:
  - name: WhitespaceTokenizer
  - name: RegexFeaturizer
  - name: LexicalSyntacticFeaturizer
  - name: CountVectorsFeaturizer
  - name: CountVectorsFeaturizer
    analyzer: char_wb
    min_ngram: 1
    max_ngram: 4
  - name: DIETClassifier
    epochs: 100
  - name: EntitySynonymMapper

```

I have entity called “month” and lookup table that includes all months. I have enough nlu examples for the lookup table to work. I have also made synonyms for every month.

“February” has synonym “Februarys”. If user writes “Februarys” it will set the month to “February”.

**Problem:** If user writes “Februry” and it’s not in the synonyms it will be recognized as a month and it will be set as user has written it(typo).

I don’t want the entity to be mapped if there is a typo. If “Februry” or “Dcembers” is recognized it should be mapped to “February” or “December”, NOT as something that is close to the word.

---

<div class="post-metadata">

**Author:** ![k1m](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/k1m/32/8518_2.png) [@k1m](https://forum.rasa.com/u/k1m)\
**Post date:** [April 13, 2020, 10:37am UTC](https://forum.rasa.com/t/entity-with-typo-being-recognized-and-set-diet/27410/2 "2020-04-13T10:37:45Z")

</div>

```auto
pipeline:
  - name: WhitespaceTokenizer
  - name: RegexFeaturizer
  - name: LexicalSyntacticFeaturizer
  - name: CountVectorsFeaturizer
  - name: CountVectorsFeaturizer
    analyzer: char_wb
    min_ngram: 1
    max_ngram: 4
  - name: CRFEntityExtractor
  - name: EntitySynonymMapper
  - name: DIETClassifier
    entity_recognition: false
    epochs: 100

```

I switched to CRFEntityExtractor. Now it works better. Seems like DIET entity recognition needs some fine tuning for me before i can use it.

---

<div class="post-metadata">

**Author:** ![forwitai](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/forwitai/32/9832_2.png) [@forwitai](https://forum.rasa.com/u/forwitai)\
**Post date:** [September 17, 2020, 8:52am UTC](https://forum.rasa.com/t/entity-with-typo-being-recognized-and-set-diet/27410/3 "2020-09-17T08:52:51Z")

</div>

Hello Kim, how did you manage to map “Februry” & “Dcembers” to “February” & “December” ? Thanks.
