From 4341e393866cd5708f1f31d9a67affaff5c4318c Mon Sep 17 00:00:00 2001 From: miro Date: Sun, 4 Aug 2024 19:08:24 +0100 Subject: [PATCH 1/2] update_opm solver class kwargs changed --- __init__.py | 12 ++++++------ requirements.txt | 1 + 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/__init__.py b/__init__.py index b7ad668..c92ed4d 100644 --- a/__init__.py +++ b/__init__.py @@ -34,7 +34,7 @@ def handle_search(self, message): @intent_handler("definition.intent") def handle_definition(self, message): query = message.data["query"] - res = self.wordnet.search(query, context={"lang": self.lang}).get("definition") + res = self.wordnet.search(query, lang=self.lang).get("definition") if res: self.speak(res) else: @@ -45,7 +45,7 @@ def handle_definition(self, message): @intent_handler("lemma.intent") def handle_lemma(self, message): query = message.data["query"] - res = self.wordnet.search(query, context={"lang": self.lang}).get("lemmas") + res = self.wordnet.search(query, lang=self.lang).get("lemmas") if res: self.speak(random.choice(res)) else: @@ -54,7 +54,7 @@ def handle_lemma(self, message): @intent_handler("antonym.intent") def handle_antonym(self, message): query = message.data["query"] - res = self.wordnet.search(query, context={"lang": self.lang}).get("antonyms") + res = self.wordnet.search(query, lang=self.lang).get("antonyms") if res: self.speak(random.choice(res)) else: @@ -63,7 +63,7 @@ def handle_antonym(self, message): @intent_handler("holonym.intent") def handle_holonym(self, message): query = message.data["query"] - res = self.wordnet.search(query, context={"lang": self.lang}).get("holonyms") + res = self.wordnet.search(query, lang=self.lang).get("holonyms") if res: self.speak(random.choice(res)) else: @@ -72,7 +72,7 @@ def handle_holonym(self, message): @intent_handler("hyponym.intent") def handle_hyponym(self, message): query = message.data["query"] - res = self.wordnet.search(query, context={"lang": self.lang}).get("hyponyms") + res = self.wordnet.search(query, lang=self.lang).get("hyponyms") if res: self.speak(random.choice(res)) else: @@ -81,7 +81,7 @@ def handle_hyponym(self, message): @intent_handler("hypernym.intent") def handle_hypernym(self, message): query = message.data["query"] - res = self.wordnet.search(query, context={"lang": self.lang}).get("hypernyms") + res = self.wordnet.search(query, lang=self.lang).get("hypernyms") if res: self.speak(random.choice(res)) else: diff --git a/requirements.txt b/requirements.txt index 519ae8b..d779cb3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,3 +3,4 @@ ovos_workshop~=0.0, >=0.0.11 ovos-classifiers ovos-translate-server-plugin ovos-config~=0.0, >=0.0.11 +ovos-plugin-manager>=0.0.26a38 From c81538be619ec84e29c21e37f6461eac60af742e Mon Sep 17 00:00:00 2001 From: miro Date: Sun, 4 Aug 2024 19:12:43 +0100 Subject: [PATCH 2/2] update_opm solver class kwargs changed --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index d779cb3..a5dfc5e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ ovos-utils~=0.0, >=0.0.35 ovos_workshop~=0.0, >=0.0.11 -ovos-classifiers +ovos-classifiers>=0.0.0a57 ovos-translate-server-plugin ovos-config~=0.0, >=0.0.11 ovos-plugin-manager>=0.0.26a38