Translator / available_models.py
Thomas Chaigneau
add docstrings
a2a09d6
raw
history blame
2.79 kB
"""
πŸ—£οΈ Translator - Translate text from one language to another.
MODELS list all available models.
Author:
- @ChainYo
"""
MODELS = {
"πŸ‡¬πŸ‡§ English->πŸ‡¬πŸ‡§ English": [0,],
"πŸ‡¬πŸ‡§ English->πŸ‡«πŸ‡· French": ["Helsinki-NLP/opus-mt-en-fr", "https://huggingface.co/Helsinki-NLP/opus-mt-en-fr"],
"πŸ‡¬πŸ‡§ English->πŸ‡©πŸ‡ͺ German": ["Helsinki-NLP/opus-mt-en-de", "https://huggingface.co/Helsinki-NLP/opus-mt-en-de"],
"πŸ‡¬πŸ‡§ English->πŸ‡ͺπŸ‡Έ Spanish": ["Helsinki-NLP/opus-mt-en-es", "https://huggingface.co/Helsinki-NLP/opus-mt-en-es"],
"πŸ‡¬πŸ‡§ English->πŸ‡·πŸ‡Ί Russian": ["Helsinki-NLP/opus-mt-en-ru", "https://huggingface.co/Helsinki-NLP/opus-mt-en-ru"],
"πŸ‡«πŸ‡· French->πŸ‡«πŸ‡· French": [0, None],
"πŸ‡«πŸ‡· French->πŸ‡¬πŸ‡§ English": ["Helsinki-NLP/opus-mt-fr-en", "https://huggingface.co/Helsinki-NLP/opus-mt-fr-en"],
"πŸ‡«πŸ‡· French->πŸ‡©πŸ‡ͺ German": ["Helsinki-NLP/opus-mt-fr-de", "https://huggingface.co/Helsinki-NLP/opus-mt-fr-de"],
"πŸ‡«πŸ‡· French->πŸ‡ͺπŸ‡Έ Spanish": ["Helsinki-NLP/opus-mt-fr-es", "https://huggingface.co/Helsinki-NLP/opus-mt-fr-es"],
"πŸ‡«πŸ‡· French->πŸ‡·πŸ‡Ί Russian": ["Helsinki-NLP/opus-mt-fr-ru", "https://huggingface.co/Helsinki-NLP/opus-mt-fr-ru"],
"πŸ‡ͺπŸ‡Έ Spanish->πŸ‡ͺπŸ‡Έ Spanish": [0, None],
"πŸ‡ͺπŸ‡Έ Spanish->πŸ‡¬πŸ‡§ English": ["Helsinki-NLP/opus-mt-es-en", "https://huggingface.co/Helsinki-NLP/opus-mt-es-en"],
"πŸ‡ͺπŸ‡Έ Spanish->πŸ‡©πŸ‡ͺ German": ["Helsinki-NLP/opus-mt-es-de", "https://huggingface.co/Helsinki-NLP/opus-mt-es-de"],
"πŸ‡ͺπŸ‡Έ Spanish->πŸ‡«πŸ‡· French": ["Helsinki-NLP/opus-mt-es-fr", "https://huggingface.co/Helsinki-NLP/opus-mt-es-fr"],
"πŸ‡ͺπŸ‡Έ Spanish->πŸ‡·πŸ‡Ί Russian": ["Helsinki-NLP/opus-mt-es-ru", "https://huggingface.co/Helsinki-NLP/opus-mt-es-ru"],
"πŸ‡©πŸ‡ͺ German->πŸ‡©πŸ‡ͺ German": [0, None],
"πŸ‡©πŸ‡ͺ German->πŸ‡¬πŸ‡§ English": ["Helsinki-NLP/opus-mt-de-en", "https://huggingface.co/Helsinki-NLP/opus-mt-de-en"],
"πŸ‡©πŸ‡ͺ German->πŸ‡ͺπŸ‡Έ Spanish": ["Helsinki-NLP/opus-mt-de-es", "https://huggingface.co/Helsinki-NLP/opus-mt-de-es"],
"πŸ‡©πŸ‡ͺ German->πŸ‡«πŸ‡· French": ["Helsinki-NLP/opus-mt-de-fr", "https://huggingface.co/Helsinki-NLP/opus-mt-de-fr"],
"πŸ‡©πŸ‡ͺ German->πŸ‡·πŸ‡Ί Russian": [None, None],
"πŸ‡·πŸ‡Ί Russian->πŸ‡·πŸ‡Ί Russian": [0, None],
"πŸ‡·πŸ‡Ί Russian->πŸ‡¬πŸ‡§ English": ["Helsinki-NLP/opus-mt-ru-en", "https://huggingface.co/Helsinki-NLP/opus-mt-ru-en"],
"πŸ‡·πŸ‡Ί Russian->πŸ‡ͺπŸ‡Έ Spanish": ["Helsinki-NLP/opus-mt-ru-es", "https://huggingface.co/Helsinki-NLP/opus-mt-ru-es"],
"πŸ‡·πŸ‡Ί Russian->πŸ‡«πŸ‡· French": ["Helsinki-NLP/opus-mt-ru-fr", "https://huggingface.co/Helsinki-NLP/opus-mt-ru-fr"],
"πŸ‡·πŸ‡Ί Russian->πŸ‡©πŸ‡ͺ German": [None, None],
}