examples/research_projects/rag-end2end-retriever/utils_rag.py/Seq2SeqDataset/get_char_lens
class Seq2SeqDataset:    def get_char_lens(data_file):
        return [len(x) for x in Path(data_file).open().readlines()]