Merge pull request #1790 from nirdesh37/patch-1

Update goldparse.jade
This commit is contained in:
Ines Montani 2018-01-03 18:37:07 +00:00 committed by GitHub
commit 874f174ab1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ p
+aside-code("Example").
from spacy.gold import biluo_tags_from_offsets
doc = nlp('I like London.')
doc = nlp(u'I like London.')
entities = [(7, 13, 'LOC')]
tags = biluo_tags_from_offsets(doc, entities)
assert tags == ['O', 'O', 'U-LOC', 'O']