Commit 30169b75 authored by Davide Liga's avatar Davide Liga

wordnet removed

parent ec8ceed3
import spacy # for natural language processing
from spacy_wordnet.wordnet_annotator import WordnetAnnotator
# python3 -m spacy download en_core_web_md
......@@ -14,7 +13,6 @@ class SpacyModelUser():
print('Loading spacy model <{}>...'.format(SPACY_MODEL))
# go here <https://spacy.io/usage/processing-pipelines> for more information about Language Processing Pipeline (tokenizer, tagger, parser, etc..)
nlp = spacy.load(SPACY_MODEL)
nlp.add_pipe(WordnetAnnotator(nlp.lang), after='tagger')
return nlp
def __init__(self):
......
......@@ -24,7 +24,7 @@ jsonschema==2.6.0
lxml==4.3.3
MarkupSafe==1.1.1
murmurhash==1.0.2
nltk==3.3
nltk==3.4
numpy==1.16.3
paramiko==2.4.2
plac==0.9.6
......@@ -41,7 +41,6 @@ six==1.12.0
smart-open==1.8.2
soupsieve==1.9.1
spacy==2.1.3
spacy-wordnet==0.0.4
srsly==0.0.5
thinc==7.0.4
tqdm==4.31.1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment