diff --git a/__init__.py b/__init__.py index 696d23a..f6bdee5 100644 --- a/__init__.py +++ b/__init__.py @@ -19,7 +19,7 @@ from ovos_plugin_manager.templates.language import LanguageTranslator from ovos_utils.lang import standardize_lang_tag from ovos_workshop.decorators import intent_handler -from ovos_workshop.skills.common_query_skill import CommonQuerySkill +from ovos_workshop.skills.ovos import OVOSSkill def download_nltk_resource(res: str, res_type: str = "taggers"): @@ -200,7 +200,7 @@ def query(cls, query, pos=wn.NOUN, synset=None, lang: Optional[str] = "en"): return res -class WordnetSkill(CommonQuerySkill): +class WordnetSkill(OVOSSkill): def initialize(self): Wordnet.translator = self.translator @@ -325,7 +325,7 @@ def handle_hypernym(self, message): # 'hyponyms': ['quipo', 'máquina de somar', 'Ossos de Napier', 'Ossos de napier', 'Abaco', 'ábaco'], # 'hypernyms': ['maquinaria', 'máquina'], # 'root_hypernyms': ['ente', 'entidade', 'ser'], - # 'definition': None} + # 'definition': "Uma máquina pequena utilizada para cálculos matemáticos"} # full answer ans = d.get_data("computer")["definition"]