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