The only entities showing up in the interpreter are the ones given in training data. For the given dataset:
{
"text": "My name is alice",
"intent": "name",
"entities": [
{
"start": 11,
"end": 16,
"value": "alice",
"entity": "name1"
}
]
},
{
"text": "I am Josh",
"intent": "name",
"entities": [
{
"start": 5,
"end": 9,
"value": "Josh",
"entity": "name1"
}
]
},
{
"text": "my name is Greg",
"intent": "name",
"entities": [
{
"end": 19,
"start": 15,
"value": "Greg",
"entity": "name1"
}
]
},
{
"text": "I am david",
"intent": "name",
"entities": [
{
"end": 10,
"start": 5,
"value": "david",
"entity": "name1"
}
]
},
{
"text": "john is my name",
"intent": "name",
"entities": [
{
"end": 15,
"start": 11,
"value": "john",
"entity": "name1"
}
]
},
When a query like âMy name is aliceâ (present in training data) comes, it is correctly classified as the entity âname1â. But something like âMy name is peterâ (not present in training data) doesnât give any entities. What is going wrong here?
P.S. I tried ner_spacy but it only classifies names with first letter capital as entities.
@shubham21197 Try out the rasa starter pack with both Tensor Flow pipeline and the Sklearn pipeline, youâd see a few differences especially for your query âMy name is Peterâ
ner_crf working with calculate weight of token based on prefix, suffix, word before and word after, you must variate training data to make it more generalize enough. Maybe you can try with lowering name, variate phrase, longer phrase.
Hi there , I am facing a similar issue, i have a entity named location and an intent named inform_state_district , i have a look up table for location , still most of the times abt 80% it fails to detect the entity in the intent, i will attach the screenshots of all below
, the first white pic shows places of where it fails and where it doesnt, it would be great if someone can shed some light into why this behaviour occurs, (the slot district is mapped to location , if anyone is wondering y ) @nik202 any idea
As for the training data I have used the entity and intent stuff like in the previous screen shot, like the one mentioned in the docs, for config.yml i havent changed anything except for the fact that i added rulepolicy for forms, here is the fileconfig.yml (1.3 KB)