Training new rasa model on the fly using http api – Stack Overflow
I am trying to train a rasa model when I add a new question from our UI. I’m doing this using the model/train http api using the below data.
intents:
- track_parcel
- leave_balance
nlu: - intent: track_parcel
examples: ‘- Track parcel’ - intent: leave_balance
examples: |-
After creating the model in the default path /models, I called the replace model http api for loading the current model. Then I tried localhost:5005/model/parse http api for getting the intent triggered using the below data
{
“text”: “jjjjjjj”,
“message_id”: “b2831e73-1407-4ba0-a861-0f30a42a2a5a”
}
But I got the track_parcel intent with 0.9 confidence
RESPONSE for model/parse api
{
“text”: “jjjjjjj”,
“intent”: {
"id": 99692160290177574,
"name": "track_parcel",
"confidence": 0.9580326676368713
},
“entities”: [],
“intent_ranking”: [
{
"id": 99692160290177574,
"name": "track_parcel",
"confidence": 0.9580326676368713
},
{
"id": -1362472849520625133,
"name": "leave_balance",
"confidence": 0.04196735471487045
}
],
“response_selector”: {
"all_retrieval_intents": [],
"default": {
"response": {
"id": null,
"responses": null,
"response_templates": null,
"confidence": 0.0,
"intent_response_key": null,
"utter_action": "utter_None",
"template_name": "utter_None"
},
"ranking": []
}
}
}
1. why I’m getting track_parcel intent with .9 confidence for an untrained random input? Do I need to make any changes in the pipeline. I’m using the default pipeline.
2. where can I see the newly trained nlu data. I tried to unzip the files in the model but could’t find the intents and examples.
3. For handling multi language application, I see a post that we need to append the language along with the intent. Then what should be the language given in the config.yml file?
Thanks
Read more here: Source link