Reduce warnings related to training data format #8214
Labels
area:rasa-oss 🎡
Anything related to the open source Rasa framework
type:maintenance 🔧
Improvements to tooling, testing, deployments, infrastructure, code style.
Operating system (windows, osx, ...): Ubuntu Windows
Issue: This Issue is part of the effort to close the Issue#7738 hence to reduce the amount of warnings that are raised when running all tests in the CI. From a first investigation, there are multiple warnings that are related to how the training data are written so I thought of creating one Issue to address them all. Some of the warnings are listed below but a more detail list can be found in the doc.
Warning (including full traceback):
2021-03-15T14:30:47.5962546Z tests/nlu/test_evaluation.py: 11 warnings 2021-03-15T14:30:47.5970871Z D:\a\rasa\rasa\rasa\shared\utils\io.py:96: UserWarning: You have defined synonyms in your training data, but your NLU pipeline does not include an 'EntitySynonymMapper'. To map synonyms, add an 'EntitySynonymMapper' to your pipeline. 2021-03-15T14:30:47.5972354Z warnings.warn(message, category=category, **kwargs)
Command or request that led to error:
41_Run Tests (test-other-unit-tests, windows-latest, 3.7).txt
Warning (including full traceback):
2021-03-15T14:30:47.4572591Z tests/test_server.py: 7 warnings 2021-03-15T14:30:47.4574472Z D:\a\rasa\rasa\rasa\shared\utils\io.py:96: UserWarning: Found a rule-based policy in your pipeline but no rule-based training data. Please add rule-based stories to your training data or remove the rule-based policy (
RulePolicy
) from your your pipeline. 2021-03-15T14:30:47.4575652Z warnings.warn(message, category=category, **kwargs)Command or request that led to error:
41_Run Tests (test-other-unit-tests, windows-latest, 3.7).txt
Warning (including full traceback):
2021-03-15T14:22:35.2087816Z rasa/shared/utils/io.py:96: 2 warnings 2021-03-15T14:22:35.2088517Z tests/core/test_agent.py: 7 warnings 2021-03-15T14:22:35.2089253Z tests/core/test_ensemble.py: 14 warnings 2021-03-15T14:22:35.2090344Z tests/core/test_evaluation.py: 2 warnings 2021-03-15T14:22:35.2091131Z tests/core/test_processor.py: 8 warnings 2021-03-15T14:22:35.2092156Z tests/shared/importers/test_multi_project.py: 1 warning 2021-03-15T14:22:35.2094315Z /home/runner/work/rasa/rasa/rasa/shared/utils/io.py:96: UserWarning: Neither 'RulePolicy' nor 'MappingPolicy' (deprecated) are included in the model's policy configuration. Default intents such as 'restart' and 'back' will not trigger actions 'action_restart' and 'action_back'. 2021-03-15T14:22:35.2096129Z warnings.warn(message, category=category, **kwargs)
Command or request that led to error:
38_Run Tests (test-other-unit-tests, ubuntu-latest, 3.7).txt
Warning (including full traceback):
2021-03-15T14:30:47.5377841Z tests/shared/core/test_slots.py: 21 warnings 2021-03-15T14:30:47.5379160Z D:\a\rasa\rasa\rasa\shared\core\slots.py:293: FutureWarning: UnfeaturizedSlot is deprecated and will be removed in Rasa Open Source 3.0. Please change the type and configure the 'influence_conversation' flag for slot 'test' instead. 2021-03-15T14:30:47.5380288Z category=FutureWarning,
Command or request that led to error:
41_Run Tests (test-other-unit-tests, windows-latest, 3.7).txt
Warning of type (including full traceback):
2021-03-15T14:22:42.7334056Z tests/nlu/test_train.py: 11 warnings 2021-03-15T14:22:42.7341150Z /home/runner/work/rasa/rasa/rasa/shared/utils/io.py:96: UserWarning: Your training data contains an example 'What's your name?...' for the chitchat/ask_name intent. You either need to add a response phrase or correct the intent for this example in your training data. If you intend to use Response Selector in the pipeline, the training may fail. 2021-03-15T14:22:42.7342937Z warnings.warn(message, category=category, **kwargs) 2021-03-15T14:22:42.7343429Z 2021-03-15T14:22:42.7347411Z tests/nlu/test_train.py: 11 warnings 2021-03-15T14:22:42.7349662Z /home/runner/work/rasa/rasa/rasa/shared/utils/io.py:96: UserWarning: Your training data contains an example 'What can I call you?...' for the chitchat/ask_name intent. You either need to add a response phrase or correct the intent for this example in your training data. If you intend to use Response Selector in the pipeline, the training may fail. 2021-03-15T14:22:42.7354860Z warnings.warn(message, category=category, **kwargs)
Command or request that led to error:
31_Run Tests (test-full-model-training, ubuntu-latest, 3.6).txt
Definition of Done:
The text was updated successfully, but these errors were encountered: