mirror of
https://github.com/explosion/spaCy.git
synced 2025-02-26 08:30:48 +03:00
make this work in python2.7
This commit is contained in:
parent
84eb9d6bd3
commit
19d4706f69
|
@ -83,7 +83,7 @@ p
|
||||||
+h(2, "examples-word-vectors") Word vectors
|
+h(2, "examples-word-vectors") Word vectors
|
||||||
|
|
||||||
+code.
|
+code.
|
||||||
doc = nlp("Apples and oranges are similar. Boots and hippos aren't.")
|
doc = nlp(u"Apples and oranges are similar. Boots and hippos aren't.")
|
||||||
|
|
||||||
apples = doc[0]
|
apples = doc[0]
|
||||||
oranges = doc[2]
|
oranges = doc[2]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user