-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect entity position in rasa adapter #22
Comments
I cannot reproduce this bug, I get the following output: {
"entities": [
{
"end": 23,
"entity": "slot",
"start": 4,
"value": "sứ mệnh như thế nào"
}
],
"intent": "intent",
"text": "xếp sứ mệnh như thế nào"
} Are you using a different file encoding than UTF-8? (this is likely the case if you're using Windows.) If this is not an encoding problem, could you provide the template you used to get this output please? |
I'm having the same problem, the file encode is us-ascii. My template:
The output: {
"rasa_nlu_data": {
"common_examples": [
{
"entities": [
{
"end": 183,
"entity": "city",
"start": 178,
"value": "tokyo"
}
],
"intent": "askPopulation",
"text": "how many people are there in tokyo"
},
{
"entities": [
{
"end": 186,
"entity": "city",
"start": 178,
"value": "new york"
}
],
"intent": "askPopulation",
"text": "hello what is the population of new york"
},
{
"entities": [
{
"end": 183,
"entity": "city",
"start": 178,
"value": "tokyo"
}
],
"intent": "askPopulation",
"text": "what is the population of tokyo"
},
{
"entities": [
{
"end": 186,
"entity": "city",
"start": 178,
"value": "new york"
}
],
"intent": "askPopulation",
"text": "how many people are there in new york"
},
{
"entities": [
{
"end": 186,
"entity": "city",
"start": 178,
"value": "new york"
}
],
"intent": "askPopulation",
"text": "what is the population of new york"
}
],
"entity_synonyms": [],
"lookup_tables": [],
"regex_features": []
}
} |
There is a problem indeed. It doesn't seem related to encoding. I'll fix that as soon as I can. Thanks for the heads up :) |
This is fixed on master branch. The fix will be present in the next release. Cheers |
The newest version of Chatette (v1.6.1) has just been released with this bug fixed! |
{
"entities": [
{
"end": 112,
"entity": "bot_job",
"start": 93,
"value": "sứ mệnh như thế nào"
}
],
"intent": "ask_for_bot_job",
"text": "xếp sứ mệnh như thế nào"
},
The 1.6.0 version and I are having the error of generating the wrong locations of entities in the sentence, above is an example. Please check again! Thank you
The text was updated successfully, but these errors were encountered: