Spaces:
Build error
Build error
PeteBleackley
commited on
Commit
·
2d04d62
1
Parent(s):
be7beac
Implement max_lengths for CorpusRepeater
Browse files
qarac/corpora/CorpusRepeater.py
CHANGED
@@ -47,5 +47,8 @@ class CorpusRepeater(object):
|
|
47 |
yield sample
|
48 |
for (_,sample) in zip(range(self.remainder),self.corpus):
|
49 |
yield sample
|
|
|
|
|
|
|
50 |
|
51 |
|
|
|
47 |
yield sample
|
48 |
for (_,sample) in zip(range(self.remainder),self.corpus):
|
49 |
yield sample
|
50 |
+
|
51 |
+
def max_lengths(self):
|
52 |
+
return self.corpus.max_lengths()
|
53 |
|
54 |
|