From af88a70a25397f50bcc34d1a74c4917e4c370615 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Mon, 26 Jan 2015 13:31:27 +1100 Subject: [PATCH] * Docs edit --- docs/source/index.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/index.rst b/docs/source/index.rst index ea2754eb0..8cb220363 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -206,7 +206,7 @@ problematic, given our starting assumptions: >>> from spacy.parts_of_speech import ADV, VERB >>> cosine = lambda v1, v2: dot(v1, v2) / (norm(v1), norm(v2)) >>> def is_bad_adverb(token, target_verb, tol): - ... if token.pos != ADVERB + ... if token.pos != ADV ... return False ... elif toke.head.pos != VERB: ... return False