Merge pull request #675 from jaspb/patch-1

added 'en' to spacy.load(..)
This commit is contained in:
Ines Montani 2016-12-10 20:25:46 +01:00 committed by GitHub
commit 61783c5025

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):