(self, data, batch_size)
| 150 | "Go through the text data by order of src length with a bit of randomness. From fastai repo." |
| 151 | |
| 152 | def __init__(self, data, batch_size): |
| 153 | self.data, self.bs = data, batch_size |
| 154 | |
| 155 | def key(self, i): |
| 156 | return len(self.data[i]) |