I have added four example to identify salary slip (context of payroll) to train my rasa nlu model but the entites on test are not identified
my data.json is as below:
{
"rasa_nlu_data": {
"common_examples": [
{
"text": "Hello",
"intent": "greet",
"entities": []
},
{
"text": "goodbye",
"intent": "goodbye",
"entities": []
},
{
"text": "What's the weather in Berlin at the moment?",
"intent": "inform",
"entities": [
{
"start": 22,
"end": 28,
"value": "Berlin",
"entity": "location"
}
]
},
{
"text": "hey",
"intent": "greet",
"entities": []
},
{
"text": "hello",
"intent": "greet",
"entities": []
},
{
"text": "hi",
"intent": "greet",
"entities": []
},
{
"text": "heya",
"intent": "greet",
"entities": []
},
{
"text": "howdy",
"intent": "greet",
"entities": []
},
{
"text": "hey there",
"intent": "greet",
"entities": []
},
{
"text": "bye",
"intent": "goodbye",
"entities": []
},
{
"text": "goodbye",
"intent": "goodbye",
"entities": []
},
{
"text": "bye bye",
"intent": "goodbye",
"entities": []
},
{
"text": "see ya",
"intent": "goodbye",
"entities": []
},
{
"text": "see you later",
"intent": "goodbye",
"entities": []
},
{
"text": "What's the weather today?",
"intent": "inform",
"entities": []
},
{
"text": "What's the weather in London today?",
"intent": "inform",
"entities": [
{
"start": 22,
"end": 28,
"value": "London",
"entity": "location"
}
]
},
{
"text": "Show me what's the weather in Paris",
"intent": "inform",
"entities": [
{
"start": 30,
"end": 35,
"value": "Paris",
"entity": "location"
}
]
},
{
"text": "I wonder what is the weather in Vilnius right now?",
"intent": "inform",
"entities": [
{
"start": 32,
"end": 39,
"value": "Vilnius",
"entity": "location"
}
]
},
{
"text": "what is the weather?",
"intent": "inform",
"entities": []
},
{
"text": "Tell me the weather",
"intent": "inform",
"entities": []
},
{
"text": "Is the weather nice in Barcelona today?",
"intent": "inform",
"entities": [
{
"start": 23,
"end": 32,
"value": "Barcelona",
"entity": "location"
}
]
},
{
"text": "I am going to London today and I wonder what is the weather out there?",
"intent": "inform",
"entities": [
{
"start": 14,
"end": 20,
"value": "London",
"entity": "location"
}
]
},
{
"text": "I am planning my trip to Amsterdam. What is the weather out there?",
"intent": "inform",
"entities": [
{
"start": 25,
"end": 34,
"value": "Amsterdam",
"entity": "location"
}
]
},
{
"text": "Show me the weather in Dublin, please",
"intent": "inform",
"entities": [
{
"start": 23,
"end": 29,
"value": "Dublin",
"entity": "location"
}
]
},
{
"text": "in London",
"intent": "inform",
"entities": [
{
"start": 3,
"end": 9,
"value": "London",
"entity": "location"
}
]
},
{
"text": "Lithuania",
"intent": "inform",
"entities": [
{
"start": 0,
"end": 9,
"value": "Lithuania",
"entity": "location"
}
]
},
{
"text": "Oh, sorry, in Italy",
"intent": "inform",
"entities": [
{
"start": 14,
"end": 19,
"value": "Italy",
"entity": "location"
}
]
},
{
"text": "Tell me the weather in Vilnius",
"intent": "inform",
"entities": [
{
"start": 23,
"end": 30,
"value": "Vilnius",
"entity": "location"
}
]
},
{
"text": "The weather condition in Italy",
"intent": "inform",
"entities": [
{
"start": 25,
"end": 30,
"value": "Italy",
"entity": "location"
}
]
},
{
"text": "where can i see my salary slip",
"intent": "inform",
"entities": [
{
"start": 19,
"end": 30,
"value": "salary slip",
"entity": "salary slip"
}
]
},
{
"text": "how do i edit details for my salary slip",
"intent": "inform",
"entities": [
{
"start": 29,
"end": 40,
"value": "salary slip",
"entity": "salary slip"
}
]
},
{
"text": "why the no of holidays is less in my salary slip",
"intent": "inform",
"entities": [
{
"start": 37,
"end": 49,
"value": " salary slip",
"entity": "salary slip"
}
]
},
{
"text": "where can i see my salary slip",
"intent": "inform",
"entities": [
{
"start": 19,
"end": 30,
"value": "salary slip",
"entity": "salary slip"
}
]
},
{
"text": "how do i get a cab",
"intent": "inform",
"entities": [
{
"start": 15,
"end": 18,
"value": "car",
"entity": ""
}
]
},
{
"text": "what is the process to change the shift of cab",
"intent": "inform",
"entities": [
{
"start": 43,
"end": 46,
"value": "car",
"entity": ""
}
]
}
]
}
}
and the test result is as below:
{'intent': {'name': 'inform', 'confidence': 0.86433063381427622}, 'entities': [], 'intent_ranking': [{'name': 'inform', 'confidence': 0.86433063381427622}, {'name': 'goodbye', 'confidence': 0.089983588489144922}, {'name': 'greet', 'confidence': 0.045685777696578785}], 'text': 'i am planning to get my salary slip , i wonder how can i get it'}
can you explain why my model is not recognizing the entity salary slip
I have added four example to identify salary slip (context of payroll) to train my rasa nlu model but the entites on test are not identified my data.json is as below: { "rasa_nlu_data": { "common_examples": [ { "text": "Hello", "intent": "greet", "entities": [] }, { "text": "goodbye", "intent": "goodbye", "entities": [] }, { "text": "What's the weather in Berlin at the moment?", "intent": "inform", "entities": [ { "start": 22, "end": 28, "value": "Berlin", "entity": "location" } ] }, { "text": "hey", "intent": "greet", "entities": [] }, { "text": "hello", "intent": "greet", "entities": [] }, { "text": "hi", "intent": "greet", "entities": [] }, { "text": "heya", "intent": "greet", "entities": [] }, { "text": "howdy", "intent": "greet", "entities": [] }, { "text": "hey there", "intent": "greet", "entities": [] }, { "text": "bye", "intent": "goodbye", "entities": [] }, { "text": "goodbye", "intent": "goodbye", "entities": [] }, { "text": "bye bye", "intent": "goodbye", "entities": [] }, { "text": "see ya", "intent": "goodbye", "entities": [] }, { "text": "see you later", "intent": "goodbye", "entities": [] }, { "text": "What's the weather today?", "intent": "inform", "entities": [] }, { "text": "What's the weather in London today?", "intent": "inform", "entities": [ { "start": 22, "end": 28, "value": "London", "entity": "location" } ] }, { "text": "Show me what's the weather in Paris", "intent": "inform", "entities": [ { "start": 30, "end": 35, "value": "Paris", "entity": "location" } ] }, { "text": "I wonder what is the weather in Vilnius right now?", "intent": "inform", "entities": [ { "start": 32, "end": 39, "value": "Vilnius", "entity": "location" } ] }, { "text": "what is the weather?", "intent": "inform", "entities": [] }, { "text": "Tell me the weather", "intent": "inform", "entities": [] }, { "text": "Is the weather nice in Barcelona today?", "intent": "inform", "entities": [ { "start": 23, "end": 32, "value": "Barcelona", "entity": "location" } ] }, { "text": "I am going to London today and I wonder what is the weather out there?", "intent": "inform", "entities": [ { "start": 14, "end": 20, "value": "London", "entity": "location" } ] }, { "text": "I am planning my trip to Amsterdam. What is the weather out there?", "intent": "inform", "entities": [ { "start": 25, "end": 34, "value": "Amsterdam", "entity": "location" } ] }, { "text": "Show me the weather in Dublin, please", "intent": "inform", "entities": [ { "start": 23, "end": 29, "value": "Dublin", "entity": "location" } ] }, { "text": "in London", "intent": "inform", "entities": [ { "start": 3, "end": 9, "value": "London", "entity": "location" } ] }, { "text": "Lithuania", "intent": "inform", "entities": [ { "start": 0, "end": 9, "value": "Lithuania", "entity": "location" } ] }, { "text": "Oh, sorry, in Italy", "intent": "inform", "entities": [ { "start": 14, "end": 19, "value": "Italy", "entity": "location" } ] }, { "text": "Tell me the weather in Vilnius", "intent": "inform", "entities": [ { "start": 23, "end": 30, "value": "Vilnius", "entity": "location" } ] }, { "text": "The weather condition in Italy", "intent": "inform", "entities": [ { "start": 25, "end": 30, "value": "Italy", "entity": "location" } ] }, { "text": "where can i see my salary slip", "intent": "inform", "entities": [ { "start": 19, "end": 30, "value": "salary slip", "entity": "salary slip" } ] }, { "text": "how do i edit details for my salary slip", "intent": "inform", "entities": [ { "start": 29, "end": 40, "value": "salary slip", "entity": "salary slip" } ] }, { "text": "why the no of holidays is less in my salary slip", "intent": "inform", "entities": [ { "start": 37, "end": 49, "value": " salary slip", "entity": "salary slip" } ] }, { "text": "where can i see my salary slip", "intent": "inform", "entities": [ { "start": 19, "end": 30, "value": "salary slip", "entity": "salary slip" } ] }, { "text": "how do i get a cab", "intent": "inform", "entities": [ { "start": 15, "end": 18, "value": "car", "entity": "" } ] }, { "text": "what is the process to change the shift of cab", "intent": "inform", "entities": [ { "start": 43, "end": 46, "value": "car", "entity": "" } ] } ] } }
and the test result is as below: {'intent': {'name': 'inform', 'confidence': 0.86433063381427622}, 'entities': [], 'intent_ranking': [{'name': 'inform', 'confidence': 0.86433063381427622}, {'name': 'goodbye', 'confidence': 0.089983588489144922}, {'name': 'greet', 'confidence': 0.045685777696578785}], 'text': 'i am planning to get my salary slip , i wonder how can i get it'}
can you explain why my model is not recognizing the entity salary slip