Is the Model Capable of Novel Two-way Translation?

#9
by bgoober - opened

Is the model capable of translating from any supported language to any other supported language? Or is it only capable of English --> XX supported language?

Meaning CN to DE, or GE to FR, etc..

ty

Owner

As of now the model is only trained to translate into other languages when the Source language(src_lang) is english.
I am working on another projects that can do 2 way translations.

Hello @SnypzZz , I am trying to see how this model works using the inference API and used the sample code from hugging face.
In the query how can i send the language code id ? I tried multiple ways but all i get the response is in Chinese.

My last attempt was

def query(payload):
response = requests.post(API_URL, headers=headers, json=payload)
return response.json()

output = query({
"inputs": "The answer to the universe is",
"lang_code_to_id":"hi_IN"
})

SnypzZz changed discussion status to closed

Sign up or log in to comment