Revirada

Traducteur automatique occitan

Aplicacions

Automatic Machine Translation API

Methods

translate_string [POST]

This method allows authenticated users to translate plain text. Only POST method is allowed.

Request example
{ 
    "api_key" : "<YOUR_API_KEY>",
    "engine" : "apertium",
    "source_language" : "fra" | "oci", | "oci_gascon",
    "target_language" : "fra" | "oci", | "oci_gascon",
    "content_type" : "txt" | "html" | "xml",
    "text" : "<ORIGINAL_TEXT>"
}
Response example
{ 
    "original_text" : "<ORIGINAL_TEXT>",
    "translated_text" : "<TRANSLATED_TEXT>",
    "words" : "<WORDS>", #Translated words,
    "translation_time": "73.4", # Execution time in seconds
    "language-pair": "fra-oci" 
}