mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-14 05:37:03 +03:00
* Fix typo from toby
This commit is contained in:
parent
f5fab2d9d7
commit
a5a9417d92
|
@ -208,7 +208,7 @@ problematic, given our starting assumptions:
|
||||||
>>> def is_bad_adverb(token, target_verb, tol):
|
>>> def is_bad_adverb(token, target_verb, tol):
|
||||||
... if token.pos != ADV
|
... if token.pos != ADV
|
||||||
... return False
|
... return False
|
||||||
... elif toke.head.pos != VERB:
|
... elif token.head.pos != VERB:
|
||||||
... return False
|
... return False
|
||||||
... elif cosine(token.head.repvec, target_verb) < tol:
|
... elif cosine(token.head.repvec, target_verb) < tol:
|
||||||
... return False
|
... return False
|
||||||
|
|
Loading…
Reference in New Issue
Block a user