public interface GoogleMTAPI
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getLanguages() |
<T> List<TranslationResponse> |
translate(GoogleQueryBuilder<T> qb)
Make a single call to Google to translate the provided list of source texts.
|
<T> TranslationResponse |
translateSingleSegment(GoogleQueryBuilder<T> qb,
String sourceText)
Perform translation of oversized (> 2048 characters) segments.
|
<T> List<TranslationResponse> translate(GoogleQueryBuilder<T> qb) throws IOException, org.json.simple.parser.ParseException
IOExceptionorg.json.simple.parser.ParseException<T> TranslationResponse translateSingleSegment(GoogleQueryBuilder<T> qb, String sourceText) throws IOException, org.json.simple.parser.ParseException
IOExceptionorg.json.simple.parser.ParseExceptionList<String> getLanguages() throws IOException, org.json.simple.parser.ParseException
IOExceptionorg.json.simple.parser.ParseExceptionCopyright © 2021. All rights reserved.