
georgedavila/cog-mbart-translation
Multilingual translation with mbart model
Public
6
runs
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 |
None
|
en_XX
|
Language of your input text.
|
targetLanguage |
None
|
es_XX
|
Language you want to translate to.
|
doSentenceLevelTranslation |
boolean
|
False
|
Translate at Sentence level? May be necessary for longer bodies of text.
|
{
"type": "object",
"title": "Input",
"properties": {
"sourceLanguage": {
"enum": [
"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"
],
"type": "string",
"title": "sourceLanguage",
"description": "Language of your input text.",
"default": "en_XX",
"x-order": 1
},
"targetLanguage": {
"enum": [
"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"
],
"type": "string",
"title": "targetLanguage",
"description": "Language you want to translate to.",
"default": "es_XX",
"x-order": 2
},
"text2translate": {
"type": "string",
"title": "Text2Translate",
"default": "Hello have you seen my dog?",
"x-order": 0,
"description": "Text you want to translate."
},
"doSentenceLevelTranslation": {
"type": "boolean",
"title": "Dosentenceleveltranslation",
"default": false,
"x-order": 3,
"description": "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"
}