Skip to content

Commit

Permalink
fix:ensure_nltk_resources (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl authored Oct 17, 2024
1 parent 99e169e commit cb744f3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,16 @@
# 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


class WordnetSkill(CommonQuerySkill):
def initialize(self):
nltk.download('punkt_tab')
nltk.download('averaged_perceptron_tagger_eng')
self.wordnet = WordnetSolverPlugin()

# intents
Expand Down

0 comments on commit cb744f3

Please sign in to comment.