mirror of https://github.com/explosion/spaCy.git
assert statement syntax fix in doc
This commit is contained in:
parent
a78062e466
commit
01cc9cd9c0
|
@ -80,7 +80,7 @@ p
|
||||||
doc.ents = [netflix_ent]
|
doc.ents = [netflix_ent]
|
||||||
|
|
||||||
ents = [(e.text, e.start_char, e.end_char, e.label_) for e in doc.ents]
|
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
|
p
|
||||||
| Keep in mind that you need to create a #[code Span] with the start and
|
| Keep in mind that you need to create a #[code Span] with the start and
|
||||||
|
|
Loading…
Reference in New Issue