nllb-translation-demo-1 / flores200_codes.py
ashourzadeh7's picture
Update flores200_codes.py
81e4d6b verified
raw
history blame
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