mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 01:46:28 +03:00
Merge pull request #979 from tsohil/patch-1
Extra brace ")" creating error
This commit is contained in:
commit
cb7821e3e3
|
@ -57,7 +57,7 @@ p
|
|||
doc.ents = [Span(doc, 0, 1, label=doc.vocab.strings['GPE'])]
|
||||
assert doc[0].ent_type_ == 'GPE'
|
||||
doc.ents = []
|
||||
doc.ents = [(u'LondonCity', doc.vocab.strings['GPE']), 0, 1)]
|
||||
doc.ents = [(u'LondonCity', doc.vocab.strings['GPE'], 0, 1)]
|
||||
|
||||
p
|
||||
| The value you assign should be a sequence, the values of which
|
||||
|
|
Loading…
Reference in New Issue
Block a user