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
[Help] Slot Fill in middle of text #1263
Comments
Can you please share the exact return in the entities array? ALso in which of the tweo slots that sentence "falls into"? |
PS: Additionally: you know that in trim rules are all "standing for themself", so it is not a "combination", means in your case you have two entitied and they have both TWO options to be matched. (they are kind of "OR" connected). To add an "AND" logic there (which indeed might be a cool idea) this would be more a feature request. I would expect (I did not tried it!) for your sentence the following result:
Also to allow "phrases" (aka multiple words in a defined order) in lef/rightwords would be a feature request. |
nlp.js Version Corpora:
My Sample Code:
conf.json
Return:
|
Ok, so my assumptions were right what is matched and so the description is above |
Thanks @Apollon77 / Do you have any more examples of using trim? |
maybe https://github.com/axa-group/nlp.js/blob/master/docs/v4/ner-manager.md#trim-entities gives some more context |
I have 2 entities below:
When I say the phrase: "falar testando, 1 2 3 na voz do chaves" the slot works normally.
But I have a problem: when a user types the following sentence: "Minha secretária pediu um aumento, mas não posso dar. Me descreva 5 motivos para falar isso para ela de forma bem delicada." is falling into that slot, where the correct thing would be to fall into None.
How do I fix this slot to accept only when it starts with the word "falar"?
The text was updated successfully, but these errors were encountered: