def _reset_filepointer(self, idx):
        """Reset file pointer.

        Args:
            idx(int): Index used to reset file pointer.

        """
        self.f_src[idx] = open(self.fname_src[idx], "r", encoding="utf-8")
        self.f_trg[idx] = open(self.fname_trg[idx], "r", encoding="utf-8")
Reset file pointer.

        Args:
            idx(int): Index used to reset file pointer.

        
utils_nlp/models/gensen/utils.py