Entity extraction not rightly working

Hi,

I have created NLU training file with following data

{
    "intent": "getelementcount",
    "entities": [
      {
        "start": 22,
        "end": 31,
        "value": "incident",
        "entity": "element"
      }
    ],
    "text": "Share total number of incidents"
  },
  {
    "intent": "getelementcount",
    "entities": [
      {
        "start": 28,
        "end": 36,
        "value": "incident",
        "entity": "element"
      }
    ],
    "text": "Please tell me the count of incident"
  }

and few more similar utterances.

when I’ m testing this with exact same sentence I am getting entity value extracted without any issue but if I change the value of entity in sentence

Please tell me the count of students,

although intent is correct, value of entity is empty([])

How to handle such cases.

Here’s a helpfull article.

Guess this may be fixed by more/better training data and or support like lookups.

@IgNoRaNt23 Thanks for the reference. I have added more than 20 utterances for few entities. Model is able to extract entities which are in training data set but as soon as I provide any other world as entity (which is not part of training set) model returns empty entity.

Is this expected behavior?

Id say no, but could you please share your training data. Possibly in the md format? Much shorter and easier readable.

e.g. your first example would be

  Share total numbers of [incidents](element)

Where did you get the json format? Rasa uses md (markdown) format now, I would guess you’re using an older video for reference.

@IgNoRaNt23. this is my training data.

 ## intent:getelementstatus
- Share [alert](element) status
- Show [alert](element) status
- [alert](element) status
- [alerts](element:alert) status
- Share status of [alerts](element:alert)
- Please tell me the status of [alerts](element:alert)
- Could you please tell me the status of [alerts](element:alert)
- Share [event](element) status
- [event](element) status
- [events](element:event) status
- Show [event](element) status
- Share status of [events](element:event)
- Please tell me the status of [events](element:event)
- Could you please tell me the status of [events](element:event)
- Share [incident](element) status
- [incident](element) status
- [incident](element:incident) status
- Show [incident](element) status
- Share total status of [incidents](element:incident)
- Please tell me the status of [incident](element:incident)
- Could you please tell me the status of  [incidents](element:incident) 

Thanks.

@ggabor sorry for the confusion. I had shared data from the file which NLU creates post training. I have added training data in .md format in comment above.