src_language, tgt_language = language_pair[0], language_pair[1]
if src_language not in SUPPORTED_DATASETS["language_pair"].keys():
raise ValueError("src_language "{}" is not valid. Supported source languages are {}".
format(src_language, SUPPORTED_DATASETS["language_pair"].keys()))
After Change
for item in zip(src_data_iter, tgt_data_iter):
yield item
return RawTextIterableDataset("IWSLT2016", NUM_LINES[split][num_lines_set_identifier[split]][tuple(sorted(language_pair))], _iter(src_data_iter, tgt_data_iter))