mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
* 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
Block a user