mirror of
https://github.com/explosion/spaCy.git
synced 2025-05-02 23:03:41 +03:00
* Remove lemmatizer from init_model
This commit is contained in:
parent
df01a88763
commit
83c0f0da22
|
@ -113,7 +113,6 @@ def setup_vocab(src_dir, dst_dir):
|
||||||
vocab = Vocab(data_dir=None, get_lex_props=get_lex_props)
|
vocab = Vocab(data_dir=None, get_lex_props=get_lex_props)
|
||||||
clusters = _read_clusters(src_dir / 'clusters.txt')
|
clusters = _read_clusters(src_dir / 'clusters.txt')
|
||||||
probs = _read_probs(src_dir / 'words.sgt.prob')
|
probs = _read_probs(src_dir / 'words.sgt.prob')
|
||||||
lemmatizer = Lemmatizer(str(src_dir / 'wordnet'), NOUN, VERB, ADJ)
|
|
||||||
lexicon = []
|
lexicon = []
|
||||||
for word, prob in reversed(sorted(probs.items(), key=lambda item: item[1])):
|
for word, prob in reversed(sorted(probs.items(), key=lambda item: item[1])):
|
||||||
entry = get_lex_props(word)
|
entry = get_lex_props(word)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user