Needs to support Chinese, Japanese, English, and Spanish but as possible make it easy to support other model-supported languages.
Use the MADLAD400-7B HuggingFace model.
Inputs:
tgt_lang: str: Target language. Use ISO 639 language codes
text: str: Text to be translated from the source to target language
Output: The translated text as a string.
NOTE: Unlike the other translation models, this model only needs the target language.