* Fix typo from toby

This commit is contained in:
Matthew Honnibal 2015-01-27 18:53:29 +11:00
parent f5fab2d9d7
commit a5a9417d92
1 changed files with 1 additions and 1 deletions

View File

@ -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