Package com.acumenvelocity.ath.gct.v3
Class AthTranslation
- java.lang.Object
-
- com.acumenvelocity.ath.gct.v3.AthTranslation
-
public class AthTranslation extends Object
-
-
Constructor Summary
Constructors Constructor Description AthTranslation()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voiddone()static com.google.cloud.translate.v3.TranslationServiceClientgetClient()static voidinit()static List<String>translateBatch(List<String> translations, String sourceLang, String targetLang, String mimeType, String projectId, String projectLocation)Translate with the standard NMT model.static List<String>translateBatch(List<String> texts, String sourceLang, String targetLang, String mimeType, String projectId, String projectLocation, String mtModelProjectId, String mtModelProjectLocation, String mtModelId, String mtGlossaryProjectId, String mtGlossaryProjectLocation, String mtGlossaryId)Translate batch with a single model and glossary (processes in parallel batches if needed)
-
-
-
Method Detail
-
translateBatch
public static List<String> translateBatch(List<String> texts, String sourceLang, String targetLang, String mimeType, String projectId, String projectLocation, String mtModelProjectId, String mtModelProjectLocation, String mtModelId, String mtGlossaryProjectId, String mtGlossaryProjectLocation, String mtGlossaryId)
Translate batch with a single model and glossary (processes in parallel batches if needed)
-
translateBatch
public static List<String> translateBatch(List<String> translations, String sourceLang, String targetLang, String mimeType, String projectId, String projectLocation)
Translate with the standard NMT model.- Parameters:
translations-sourceLang-targetLang-mimeType-projectId-projectLocation-- Returns:
-
getClient
public static com.google.cloud.translate.v3.TranslationServiceClient getClient()
-
-