added 'en' to spacy.load(..)

This commit is contained in:
jaspb 2016-12-10 19:18:13 +00:00 committed by GitHub
parent 5ad5408242
commit 3d7f81ddf5

View File

@ -217,7 +217,7 @@ p
('I like London and Berlin.', [(7, 13, 'LOC'), (18, 24, 'LOC')])
]
nlp = spacy.load(entity=False, parser=False)
nlp = spacy.load('en', entity=False, parser=False)
ner = EntityRecognizer(nlp.vocab, entity_types=['PERSON', 'LOC'])
for itn in range(5):