nllb-translation-demo-2 / flores200_codes.py
ashourzadeh7's picture
Upload 3 files
3ca116b verified
raw
history blame contribute delete
231 Bytes
codes_as_string = '''فارسی pes_Arab
کردی ckb_Arab'''
codes_as_string = codes_as_string.split('\n')
flores_codes = {}
for code in codes_as_string:
lang, lang_code = code.split('\t')
flores_codes[lang] = lang_code