# from datasets import load_dataset # dataset = load_dataset('vukuzenzele-sentence-aligned.py', 'aligned-afr-eng.jsonl') from itertools import combinations from pprint import pprint LANGUAGES = ['afr', 'eng', 'nbl', 'nso', 'sot', 'ssw', 'tsn', 'tso', 'ven', 'xho', 'zul'] LANGUAGE_PAIRS = list(combinations(LANGUAGES, 2)) pprint(LANGUAGE_PAIRS)