* Add test for matcher end-point problem

This commit is contained in:
Matthew Honnibal 2015-11-12 05:00:40 +11:00
parent d309622a27
commit ec7d36c3a4

View File

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