Fix bug in limit calculation on dev data

This commit is contained in:
Matthew Honnibal 2017-11-14 01:37:10 +01:00
parent 1b348389bb
commit 86ddf692a1

View File

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