Update goldparse.jade

This commit is contained in:
nirdesh37 2018-01-03 17:25:21 +05:30 committed by GitHub
parent a980a7aa68
commit 67fdceed6a
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"). +aside-code("Example").
from spacy.gold import biluo_tags_from_offsets from spacy.gold import biluo_tags_from_offsets
doc = nlp('I like London.') doc = nlp(u'I like London.')
entities = [(7, 13, 'LOC')] entities = [(7, 13, 'LOC')]
tags = biluo_tags_from_offsets(doc, entities) tags = biluo_tags_from_offsets(doc, entities)
assert tags == ['O', 'O', 'U-LOC', 'O'] assert tags == ['O', 'O', 'U-LOC', 'O']