using new method from language_utils and removed tests

This commit is contained in:
Mathieu B 2021-07-30 21:12:13 +02:00
parent e50a411a49
commit 88a232a706

View File

@ -25,7 +25,7 @@ def process_request():
if __name__ == '__main__':
# Load lingua franca in the memory
# Supported : English French German Hungarian Italian Portuguese Swedish
lingua_franca.load_language(lang=languages_utils.get_language().split("-")[0])
lingua_franca.load_language(lang=languages_utils.get_language_only_country())
# Tests
WikipediaSkill().register()
@ -34,9 +34,7 @@ if __name__ == '__main__':
intent_manager.load_all_skills()
intent_manager.recognise("cherche sur wikipédia Elon Musk") # TO CHECK
intent_manager.recognise("c'est qui Elon Musk") # TO CHECK
intent_manager.recognise("cherche Elon Musk sur wikipédia") # TO CHECK
# intent_manager.recognise("cherche Elon Musk sur wikipédia") # TO CHECK
# intent_manager.recognise("raconte moi une blague") # WORKING
# intent_manager.recognise("joue le morceau crazy crazy nights de KISS sur spotify") # WORKING
# intent_manager.recognise("coupe la musique") # WORKING