mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 01:46:28 +03:00
assert statement syntax fix in doc
This commit is contained in:
parent
a78062e466
commit
01cc9cd9c0
|
@ -80,7 +80,7 @@ p
|
|||
doc.ents = [netflix_ent]
|
||||
|
||||
ents = [(e.text, e.start_char, e.end_char, e.label_) for e in doc.ents]
|
||||
assert ents = [(u'Netflix', 0, 7, u'ORG')]
|
||||
assert ents == [(u'Netflix', 0, 7, u'ORG')]
|
||||
|
||||
p
|
||||
| Keep in mind that you need to create a #[code Span] with the start and
|
||||
|
|
Loading…
Reference in New Issue
Block a user