From 5c9b8d05e4225dd1ffcbdb17a9ce3ed52c9fed0b Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sun, 26 Jul 2015 17:41:13 +0200 Subject: [PATCH] * Upd test_docs --- tests/test_docs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_docs.py b/tests/test_docs.py index 8ac005c8a..7f1d93144 100644 --- a/tests/test_docs.py +++ b/tests/test_docs.py @@ -56,7 +56,7 @@ def test3(): from numpy.linalg import norm cosine = lambda v1, v2: dot(v1, v2) / (norm(v1) * norm(v2)) - words = [w for w in nlp.vocab if w.check(IS_LOWER) and w.has_repvec] + words = [w for w in nlp.vocab if w.is_lower and w.has_repvec] words.sort(key=lambda w: cosine(w.repvec, pleaded.repvec)) words.reverse() o = [w.orth_ for w in words[0:20]]