public class Lingo24Translator extends AbstractTranslator
translator.lingo24.properties file.| Constructor and Description | 
|---|
| Lingo24Translator() | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | isAvailable() | 
| String | translate(String text,
         String targetLanguage)Translate text to the given language
 This method attempts to auto-detect the source language of the text. | 
| String | translate(String text,
         String sourceLanguage,
         String targetLanguage)Translate text between given languages. | 
detectLanguagepublic String translate(String text, String sourceLanguage, String targetLanguage) throws TikaException, IOException
Translatortext - The text to translate.sourceLanguage - The input text language (for example, "en").targetLanguage - The desired language to translate to (for example, "fr").TikaException - When there is an error translating.IOExceptionpublic String translate(String text, String targetLanguage) throws TikaException, IOException
Translatortext - The text to translate.targetLanguage - The desired language to translate to (for example, "hi").TikaException - When there is an error translating.IOExceptionpublic boolean isAvailable()
Copyright © 2007–2022 The Apache Software Foundation. All rights reserved.