From 51d7414e94981dc530d9f8be427ac9942ee263d7 Mon Sep 17 00:00:00 2001 From: ines Date: Mon, 5 Jun 2017 12:30:13 +0200 Subject: [PATCH 1/2] Make sure sents are a list --- spacy/tests/regression/test_issue704.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/tests/regression/test_issue704.py b/spacy/tests/regression/test_issue704.py index 6ca3293ae..51f481a3f 100644 --- a/spacy/tests/regression/test_issue704.py +++ b/spacy/tests/regression/test_issue704.py @@ -11,5 +11,5 @@ def test_issue704(EN): text = '“Atticus said to Jem one day, “I’d rather you shot at tin cans in the backyard, but I know you’ll go after birds. Shoot all the blue jays you want, if you can hit ‘em, but remember it’s a sin to kill a mockingbird.”' doc = EN(text) - sents = [sent for sent in doc.sents] + sents = list([sent for sent in doc.sents]) assert len(sents) == 3 From 152dc018a67ae8ac7e5508461d9affd7a1ba03b6 Mon Sep 17 00:00:00 2001 From: ines Date: Mon, 5 Jun 2017 12:30:22 +0200 Subject: [PATCH 2/2] Remove syntax iterators from setup.py --- setup.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 3292f8242..cc9b149de 100755 --- a/setup.py +++ b/setup.py @@ -43,8 +43,7 @@ MOD_NAMES = [ 'spacy.cfile', 'spacy.matcher', 'spacy.syntax.ner', - 'spacy.symbols', - 'spacy.syntax.iterators'] + 'spacy.symbols'] COMPILE_OPTIONS = {