You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/torch/utils/data/dataloader.py in next(self)
520 self._reset()
--> 521 data = self._next_data()
522 self._num_yielded += 1
/torch/utils/data/dataloader.py in _next_data(self)
560 index = self._next_index() # may raise StopIteration
--> 561 data = self._dataset_fetcher.fetch(index) # may raise StopIteration
562 if self._pin_memory:
/torch/utils/data/_utils/fetch.py in fetch(self, possibly_batched_index)
43 if self.auto_collation:
---> 44 data = [self.dataset[idx] for idx in possibly_batched_index]
45 else:
/torch/utils/data/_utils/fetch.py in (.0)
43 if self.auto_collation:
---> 44 data = [self.dataset[idx] for idx in possibly_batched_index]
45 else:
/code/read_data.py in getitem(self, idx)
209 if self.aug is not None:
--> 210 u, v, ori = self.aug(self.text[idx], self.ids[idx])
211 encode_result_u, length_u = self.get_tokenized(u)
This might be related to the dictionary file about the back-translations. This might be because several sentences are not back-translated, like the 9226th sentence.
Activity
LauJames commentedon Jun 1, 2022
I have met the same issue...
kehanguo commentedon Aug 9, 2022
I have the same issue. Did anyone solve it yet?
jiaaoc commentedon Sep 21, 2022
This might be related to the dictionary file about the back-translations. This might be because several sentences are not back-translated, like the 9226th sentence.
2514099958 commentedon Feb 14, 2023
Has anyone already downloaded the preprocessed dataset? The original URL is invalid, can anyone share the preprocessed dataset? Many thanks.
kocemir commentedon Aug 7, 2025
It requieres the translation files. If you cannot use translator, you can do the following: In read_data.py,
In the original repo, None is Translator(path). After doing that, you should modify a lot of lines in training. py file.