On a fresh install of rasa, running rasa data validate, the following UserWarning is emitted:
UserWarning: The example ‘good afternoon’ was found labeled with multiple different intents in the training data. Each annotated message should only appear with one intent. You should fix that conflict The example is labeled with: goodbye, greet
Since “good afternoon” can be interpreted as both an initial greeting (greeting intent) , and as part of ending a conversation (goodbye intent), a warning is em
Context: (venv) $ rasa --version Rasa Version : 2.7.1 Minimum Compatible Version: 2.6.0 Rasa SDK Version : 2.7.0 Rasa X Version : None Python Version : 3.7.10 Operating System : Darwin-20.5.0-x86_64-i386-64bit Python Path : …/venv/bin/python
I’m updating my example text for “goodbye” to “have a good afternoon”, but what is the correct way to allow the same utterance to match depending on context (e.g. IF greeting has already happened, then it must be goodbye. If goodbye has already happened, then assume it is greeting.
Basically. are we “in a conversation” Yes → then this likely to be a “goodbye” intent. No → then this is likely to be a “greeting” intent
In my opinion, sample data that comes “out of the box” installs should provide complete examples, without UserWarnings.
I would be glad to open a pull request, to fix the file in “/cli/initial_project/datga/nlu”, but is that the right fix? I’m still learning my way around Rasa but wouldn’t it be better to provide a default example that includes something that can disambiguate “good afternoon” during convo vs. to start convo?