From cb744f3d5a23e558525a9092ee677385afa511d8 Mon Sep 17 00:00:00 2001 From: JarbasAI <33701864+JarbasAl@users.noreply.github.com> Date: Thu, 17 Oct 2024 01:26:54 +0100 Subject: [PATCH] fix:ensure_nltk_resources (#12) --- __init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/__init__.py b/__init__.py index d2fbb20..37be1e5 100644 --- a/__init__.py +++ b/__init__.py @@ -11,7 +11,7 @@ # limitations under the License. # import random - +import nltk from ovos_classifiers.opm.nltk import WordnetSolverPlugin from ovos_workshop.decorators import intent_handler from ovos_workshop.skills.common_query_skill import CommonQuerySkill, CQSMatchLevel @@ -19,6 +19,8 @@ class WordnetSkill(CommonQuerySkill): def initialize(self): + nltk.download('punkt_tab') + nltk.download('averaged_perceptron_tagger_eng') self.wordnet = WordnetSolverPlugin() # intents