From 86ddf692a175aad092cba736f73a7a960e174116 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Tue, 14 Nov 2017 01:37:10 +0100 Subject: [PATCH] Fix bug in limit calculation on dev data --- spacy/gold.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/gold.pyx b/spacy/gold.pyx index ea4e1817b..d6db9b853 100644 --- a/spacy/gold.pyx +++ b/spacy/gold.pyx @@ -179,7 +179,7 @@ class GoldCorpus(object): gold_tuples = read_json_file(loc) for item in gold_tuples: yield item - i += 1 + i += len(item[1]) if self.limit and i >= self.limit: break