mirror of https://github.com/explosion/spaCy.git
* Add test for matcher end-point problem
This commit is contained in:
parent
d309622a27
commit
ec7d36c3a4
|
@ -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'
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue