public class LanguageTranslation extends WatsonService
defaultHeaders, MESSAGE_CODE, MESSAGE_ERROR, skipAuthentication, VERSION| Constructor and Description |
|---|
LanguageTranslation()
Deprecated.
|
LanguageTranslation(java.lang.String username,
java.lang.String password)
Deprecated.
Instantiates a new language translation service by username and password.
|
| Modifier and Type | Method and Description |
|---|---|
ServiceCall<TranslationModel> |
createModel(CreateModelOptions options)
Deprecated.
Creates a translation model.
|
ServiceCall<java.lang.Void> |
deleteModel(java.lang.String modelId)
Deprecated.
Deletes a translation model.
|
ServiceCall<java.util.List<IdentifiableLanguage>> |
getIdentifiableLanguages()
Deprecated.
Gets the The identifiable languages.
|
ServiceCall<TranslationModel> |
getModel(java.lang.String modelId)
Deprecated.
Gets a translation model.
|
ServiceCall<java.util.List<TranslationModel>> |
getModels()
Deprecated.
Gets the translation model.
|
ServiceCall<java.util.List<TranslationModel>> |
getModels(java.lang.Boolean showDefault,
java.lang.String source,
java.lang.String target)
Deprecated.
Retrieves the list of model.
|
ServiceCall<java.util.List<IdentifiedLanguage>> |
identify(java.lang.String text)
Deprecated.
Identify language in which text is written.
|
ServiceCall<TranslationResult> |
translate(java.util.List<java.lang.String> texts,
Language source,
Language target)
Deprecated.
Translate multiple texts using source and target languages.
|
ServiceCall<TranslationResult> |
translate(java.util.List<java.lang.String> texts,
java.lang.String modelId)
Deprecated.
Translate multiple texts using a given model.
|
ServiceCall<TranslationResult> |
translate(java.lang.String text,
Language source,
Language target)
Deprecated.
Translate text using source and target languages.
|
ServiceCall<TranslationResult> |
translate(java.lang.String text,
java.lang.String modelId)
Deprecated.
Translate text using a given model.
|
configureHttpClient, createServiceCall, getApiKey, getEndPoint, getName, getToken, processServiceCall, setApiKey, setAuthentication, setDefaultHeaders, setDefaultHeaders, setEndPoint, setSkipAuthentication, setUsernameAndPassword, toStringpublic LanguageTranslation()
public LanguageTranslation(java.lang.String username,
java.lang.String password)
username - the usernamepassword - the passwordpublic ServiceCall<TranslationModel> createModel(CreateModelOptions options)
options - the create model optionspublic ServiceCall<java.lang.Void> deleteModel(java.lang.String modelId)
modelId - the model identifierpublic ServiceCall<java.util.List<IdentifiableLanguage>> getIdentifiableLanguages()
See {@link IdentifiableLanguage}public ServiceCall<TranslationModel> getModel(java.lang.String modelId)
modelId - the model identifierTranslationModelpublic ServiceCall<java.util.List<TranslationModel>> getModels()
TranslationModelpublic ServiceCall<java.util.List<TranslationModel>> getModels(java.lang.Boolean showDefault, java.lang.String source, java.lang.String target)
showDefault - show default modelsource - the sourcetarget - the targetTranslationModelpublic ServiceCall<java.util.List<IdentifiedLanguage>> identify(java.lang.String text)
text - the text to identifypublic ServiceCall<TranslationResult> translate(java.lang.String text, java.lang.String modelId)
text - The submitted paragraphs to translatemodelId - the model idTranslationResultpublic ServiceCall<TranslationResult> translate(java.lang.String text, Language source, Language target)
text - The paragraphs to translatesource - The source languagetarget - The target languageTranslationResultpublic ServiceCall<TranslationResult> translate(java.util.List<java.lang.String> texts, java.lang.String modelId)
texts - The submitted texts to translatemodelId - the model idTranslationResult with translations in the same order as the supplied texts.public ServiceCall<TranslationResult> translate(java.util.List<java.lang.String> texts, Language source, Language target)
texts - The texts to translatesource - The source languagetarget - The target languageTranslationResult with translations in the same order as the supplied texts.