georgedavila / cog-mbart-translation

Multilingual translation with mbart model

  • Public
  • 3 runs
  • GitHub

Run georgedavila/cog-mbart-translation with an API

Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.

Input schema

The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.

Field Type Default value Description
text2translate
string
Hello have you seen my dog?
Text you want to translate.
sourceLanguage
string (enum)
en_XX

Options:

ar_AR, cs_CZ, de_DE, en_XX, es_XX, et_EE, fi_FI, fr_XX, gu_IN, hi_IN, it_IT, ja_XX, kk_KZ, ko_KR, lt_LT, lv_LV, my_MM, ne_NP, nl_XX, ro_RO, ru_RU, si_LK, tr_TR, vi_VN, zh_CN

Language of your input text.
targetLanguage
string (enum)
es_XX

Options:

ar_AR, cs_CZ, de_DE, en_XX, es_XX, et_EE, fi_FI, fr_XX, gu_IN, hi_IN, it_IT, ja_XX, kk_KZ, ko_KR, lt_LT, lv_LV, my_MM, ne_NP, nl_XX, ro_RO, ru_RU, si_LK, tr_TR, vi_VN, zh_CN

Language you want to translate to.
doSentenceLevelTranslation
boolean
False
Translate at Sentence level? May be necessary for longer bodies of text.

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{
  "type": "string",
  "title": "Output"
}