Closed rithwikjc closed 6 years ago
actually, can you try updating to rasa_nlu==0.11.5
first ? We recently noticed some bugs with ner_crf
, so this might also be causing the problem.
@akelad Thanks for the suggestion. I will try that.
Also I have managed to temporarily overcome the problem by adding some more training data like :
- i want to [play basketball](activity) in the morning
- i want to [play basketball](activity) in the evening
But I could still use help with general ways to handle situations where the NLU extracts multiple entities of the same kind, that would be great.
I guess I'll have to figure something out on my own. I will close the issue.
Will pip install rasa_nlu --upgrade
be enough to upgrade Rasa?
pip install rasa_nlu --upgrade
will probably pull version 0.12.2 which has big configuration changes, so depends whether you want to spend time rewriting that. If you want version 0.11.5, run pip install rasa_nlu==0.11.5
The approach you're going with should work fine, and i think with the upgrade it shouldn't recognize "in the morning" anymore. Try upgrading and then let us know if you're still having those issues
I am planning to upgrade to the latest and try the new tensorflow embedding pipeline. Thanks for the help. Closing the issue now.
What type of bug in ner_crf you guys noticed? @akelad
it was only training on examples with labeled entities and therefore had no negative examples of sentences with no entities. so it was wrongly recognising entities in pretty much all sentences