Closed cahnory closed 1 year ago
It seems related to slot filling... the full sentence is received by the slot filling as the answer, and then an entity is extracted from it... but the previous sentence is not removed.
Confirmed bug
@jesus-seijas-sp I also stumbled upon this ...
This is fixed in #1164 ... then the fallback entity is only added in slot filling when the entitiy is not alreayd parsed in the meantime
Describe the bug If several occurrences of the same entity are found in an utterance, the answer seems to use the one with the lowest position.
To Reproduce
Here the log of the last process response. You can see one entity with a perfect accuracy smashed by the next one:
Expected behavior The entity used in answers should be the one with the higher accuracy value.
Desktop (please complete the following information):
Additional context The problem seems to be here https://github.com/axa-group/nlp.js/blob/master/lib/nlp/nlp-manager.js#L451 and probably here too https://github.com/axa-group/nlp.js/blob/master/lib/nlp/nlp-manager.js#L433