mirror of https://github.com/explosion/spaCy.git
Update example
This commit is contained in:
parent
fea4925f41
commit
6557ff9e85
|
@ -63,9 +63,8 @@ p
|
|||
| is preserved.
|
||||
|
||||
+aside-code("Example").
|
||||
tokens = nlp('An example sentence. Another example sentence.')
|
||||
tokens[0].text, tokens[0].head.tag_
|
||||
# ('An', 'NN')
|
||||
doc = nlp(u'An example sentence. Another sentence.')
|
||||
assert (doc[0].text, doc[0].head.tag_) == ('An', 'NN')
|
||||
|
||||
+table(["Name", "Type", "Description"])
|
||||
+row
|
||||
|
|
Loading…
Reference in New Issue