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