mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 01:46:28 +03:00
Fix training counter for gold preprocessing
This commit is contained in:
parent
d21459f87d
commit
c647a0d33e
|
@ -194,8 +194,9 @@ class GoldCorpus(object):
|
|||
|
||||
def count_train(self):
|
||||
n = 0
|
||||
for raw_text, paragraph_tuples in self.train_tuples:
|
||||
for _ in self.train_tuples:
|
||||
n += 1
|
||||
n += len(paragraph_tuples)
|
||||
return n
|
||||
|
||||
def train_docs(self, nlp, gold_preproc=False,
|
||||
|
|
Loading…
Reference in New Issue
Block a user