Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Specify a source and target language.
  • Include the text to translate

URL

(POST) /api/apps/mthive/translate/sync

...

src

The source language code. If the language was not specified, then this is the estimated source language.

string
srctThe source language name. If the language was not specified, then this is the estimated source language.string
trg

The target language code.

string
translationThe translated textstring

segs
words
chars

The total number of text segments, words and characters in the source text.

This is information you would typically display to the user.

int
int
int

wordsMT
wordsTM100
wordsTM110
wordsTMFuzzy

Gives advanced information on how the translation was done. Translation combines machine translation and translation memory techniques.

"wordsMT" is the total words translated by machine.

"wordsTM100" are the words translated from memories at identical match rate.

"wordsTM110" are the words translated from memories within context.

"wordsTMFuzzy" are the words translated from memories but at below identical match rate.

This information should be displayed to the user as it gives an idea of the quality of the translation: The lower the percentage of machine translation, the higher the quality.

Example:

Note: "Using translation memories" is the sum of: wordsTM100 + wordsTM110 + wordsTMFuzzy 


int
int
int
int

...


ERRORS

The api may return errors if:

...


EXAMPLES

Translation result: 


Code Block
{
    "src": "fr",
    "srct": "French",
    "trg": "en",
    "translation": "This is a sample translation. It includes machine translated text.",
    "segs": 2,
    "words": 10,
    "chars": 57,
    "wordsMT": 5,
    "wordsTM100": 5,
    "wordsTM110": 0,
    "wordsTMFuzzy": 0
}

 

...