# Enitity not identifying correctly and NLU training issue

**URL:** <https://forum.rasa.com/t/enitity-not-identifying-correctly-and-nlu-training-issue/6448>\
**Category:** Rasa Open Source\
**Created:** [March 29, 2019, 8:04am UTC](https://forum.rasa.com/t/enitity-not-identifying-correctly-and-nlu-training-issue/6448 "2019-03-29T08:04:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anand\_Menon](https://avatars.discourse-cdn.com/v4/letter/a/46a35a/32.png) [@Anand\_Menon](https://forum.rasa.com/u/Anand_Menon)\
**Post date:** [March 29, 2019, 8:04am UTC](https://forum.rasa.com/t/enitity-not-identifying-correctly-and-nlu-training-issue/6448/1 "2019-03-29T08:04:19Z")

</div>

Hi, I am having a serious issue with rasa nlu where entities are not identifying correctly.But the weird scenario is that it works(identify the entity) when i retrain the NLU model. In times when i edit the nlu\_data.md file and retrain the model the entity wont work then i would have to retrain the model again and again the model to make it identify each entity.I find the model very inconsistent and least confident.

My NLU pipeline

* * *

language: “en” pipeline:

- name: “tokenizer\_whitespace”
- name: “intent\_entity\_featurizer\_regex”
- name: “ner\_crf”
- name: “ner\_synonyms”
- name: “intent\_featurizer\_count\_vectors”
- name: “intent\_classifier\_tensorflow\_embedding”

sample NLU\_data.md [I am just giving an example]

* * *

## intent:inform

. .

- Add Book
- Remove Book
- Book Issue
- Book Info . .

Example Scenerio User - Hi Bot - Welcome to BookS 1. Add Book 2. Remove Book 3. Book Issue 4. Book Info User - Book Issue Bot - Sorry i didn’t understand you # Fallback or # Circuit Tripped error

Action endpoint error DEBUG:rasa\_core\_sdk.forms:Validating user input ‘{‘intent’: {‘name’: ‘inform’, ‘confidence’: 0.685754120349884}, **‘entities’: []**, ‘intent\_ranking’: [{‘name’: ‘inform’, ‘confidence’: 0.685754120349884}, {‘name’: ‘Book Issue’, ‘confidence’: 0.6697322130203247}, {‘name’: ‘Book Info’, ‘confidence’: 0.10917111486196518}, {‘name’: ‘stop’, ‘confidence’: 0.09826930612325668}, {‘name’: ‘thankyou’, ‘confidence’: 0.0013971030712127686}, {‘name’: ‘deny’, ‘confidence’: 0.0}, {‘name’: ‘greet’, ‘confidence’: 0.0}, {‘name’: ‘filewatch\_issue’, ‘confidence’: 0.0}, {‘name’: ‘access’, ‘confidence’: 0.0}, {‘name’: ‘cancel’, ‘confidence’: 0.0}], ‘text’: Book Issue’}’

As you can see entities: [] is empty but if i retrain the model, **Book Issue** will work but Add Book or Remove Book May not work. So i need train the model and check if every flow(Add Book/Remove Book/Book Issue…etc) is working which is very hectic. I am least confident on the model since i cant ask my client to retrain the model

I Hope you got the gist of what i am trying to convey and please help me out here
