public class TranslationResult
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Constructor and Description |
---|
TranslationResult() |
Modifier and Type | Method and Description |
---|---|
Long |
getCharacterCount()
Gets the characterCount.
|
String |
getDetectedLanguage()
Gets the detectedLanguage.
|
Double |
getDetectedLanguageConfidence()
Gets the detectedLanguageConfidence.
|
List<Translation> |
getTranslations()
Gets the translations.
|
Long |
getWordCount()
Gets the wordCount.
|
public Long getWordCount()
An estimate of the number of words in the input text.
public Long getCharacterCount()
Number of characters in the input text.
public String getDetectedLanguage()
The language code of the source text if the source language was automatically detected.
public Double getDetectedLanguageConfidence()
A score between 0 and 1 indicating the confidence of source language detection. A higher value indicates greater confidence. This is returned only when the service automatically detects the source language.
public List<Translation> getTranslations()
List of translation output in UTF-8, corresponding to the input text entries.
Copyright © 2022 IBM Cloud. All rights reserved.