mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-11 17:56:30 +03:00
Make test more explicit [ci skip]
This commit is contained in:
parent
cc3646b06c
commit
4771a10503
|
@ -617,5 +617,5 @@ def test_doc_set_ents_spans(en_tokenizer):
|
|||
retokenizer.merge(span)
|
||||
# If this line is uncommented, it works:
|
||||
# print(spans)
|
||||
doc.ents = list(doc.ents) + spans
|
||||
print([ent.text for ent in doc.ents])
|
||||
doc.ents = spans
|
||||
assert [ent.text for ent in doc.ents] == ["Colombia", "Czech Republic"]
|
||||
|
|
Loading…
Reference in New Issue
Block a user