mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 04:08:09 +03:00
* Require user-custom NER classes to work without adding the label.
This commit is contained in:
parent
84c5dfbfc3
commit
e1282b7f2f
|
@ -113,7 +113,6 @@ def test_ner_interaction(EN):
|
|||
doc = EN.tokenizer(u'get me a flight from SFO to LAX leaving 20 December and arriving on January 5th')
|
||||
EN.tagger(doc)
|
||||
EN.matcher(doc)
|
||||
EN.entity.add_label('AIRPORT')
|
||||
EN.entity(doc)
|
||||
|
||||
ents = [(ent.label_, ent.text) for ent in doc.ents]
|
||||
|
|
Loading…
Reference in New Issue
Block a user