* Add test for matcher end-point problem

This commit is contained in:
Matthew Honnibal 2015-11-12 04:58:53 +11:00
parent cfa4062147
commit 56ea20a886
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ def test_unit_end_gazetteer(EN):
if len(list(doc.ents)) == 0: if len(list(doc.ents)) == 0:
ents = matcher(doc) ents = matcher(doc)
assert len(ents) == 1 assert len(ents) == 1
nlp.entity(doc) EN.entity(doc)
assert list(nlp.ents)[0].text == 'cal' assert list(nlp.ents)[0].text == 'cal'