mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-24 00:46:28 +03:00
added 'en' to spacy.load(..)
This commit is contained in:
parent
5ad5408242
commit
3d7f81ddf5
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user