mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
Fix flakey test
This commit is contained in:
parent
3973af2d15
commit
70a43858e1
|
@ -70,6 +70,8 @@ def test_issue999(train_data):
|
|||
doc = nlp2(raw_text)
|
||||
ents = {(ent.start_char, ent.end_char): ent.label_ for ent in doc.ents}
|
||||
for start, end, label in entity_offsets:
|
||||
if (start, end) not in ents:
|
||||
print(ents)
|
||||
assert ents[(start, end)] == label
|
||||
if (start, end) in ents:
|
||||
assert ents[(start, end)] == label
|
||||
break
|
||||
else:
|
||||
raise Exception(ents)
|
||||
|
|
Loading…
Reference in New Issue
Block a user