|
|
|
|
|
|
|
|
|
helsinki_models = [ |
|
"Helsinki-NLP/opus-mt-tc-big-eu-itc", |
|
"Helsinki-NLP/opus-mt-euq-en", |
|
"Helsinki-NLP/opus-mt-eu-ru", |
|
"Helsinki-NLP/opus-mt-eu-es", |
|
"Helsinki-NLP/opus-mt-eu-en", |
|
"Helsinki-NLP/opus-mt-eu-de", |
|
"Helsinki-NLP/opus-mt-en-euq", |
|
"Helsinki-NLP/opus-mt-en-euq", |
|
"Helsinki-NLP/opus-mt-en-eu", |
|
"Helsinki-NLP/opus-mt-de-eu", |
|
"Helsinki-NLP/opus-mt-ru-eu", |
|
"Helsinki-NLP/opus-mt-es-eu" |
|
] |
|
|
|
def get_clearly_formatted_language_directions(): |
|
|
|
|
|
|
|
language_directions = [model.split("Helsinki-NLP/opus-mt-")[1] for model in helsinki_models |
|
if (len(model.split("-"))<6 and |
|
"opus-mt" in model and |
|
len(model.split("_")) == 1) |
|
and len(model) < len("Helsinki-NLP/opus-mt-src-trg")] |
|
return language_directions |