Translate a segment
Changed onTranslate a source string.
Functionally identical to POST /v2/translate, with parameters passed as query string parameters instead of a JSON request body. Useful for simple integrations that prefer a GET request.
Setting the rich parameter to true will change the response format to include additional information about each translation including a model score, word alignments, and formatting information.
By default, this endpoint also returns translation memory (TM) fuzzy matches, along with associated scores. Fuzzy matches always appear ahead of machine translation output in the response.
The maximum source length is 50,000 characters. When a prefix is supplied (prefix-based translation), the maximum source length is 5,000 characters.
Word-alignment and formatting fields (targetWords, targetDelimiters, and provenance) are returned only for prefix or source_hash requests. Plain (non-prefixed) translations return target and targetWithTags only. The source-side fields tokenizedSource and sourceDelimiters are no longer returned.
Usage charges apply to this endpoint for production API keys.
Request
- Base URLhttps://api.lilt.com
- URLhttps://api.lilt.com/v2/translate
- AuthHTTP basic
Query parameters
The source string to translate.
A unique Memory identifier.
A source hash code.
Return top n translations (deprecated).
A target prefix.
Returns rich translation information (e.g., with word alignments).
Include translation memory fuzzy matches.
Project tags. Projects tags in source to target if set to true.
Contains ICU data. If true then tags in the source following the ICU standard will be parsed and retained.
Response
A TranslationList object.
Example response
{
"untokenizedSource": "Authentication not required.",
"tokenizedSource": "Authentication not required .",
"sourceDelimiters": [
"",
" ",
" ",
"",
""
]
}Changes
- info
response property
sourceDelimitersdeprecated - info
response property
tokenizedSourcedeprecated
- info