Package ai.rev.languageid.models
Class LanguageIdResult
- java.lang.Object
-
- ai.rev.languageid.models.LanguageIdResult
-
public class LanguageIdResult extends Object
A Language Id Result object provides all the information associated with the result of a job.
-
-
Constructor Summary
Constructors Constructor Description LanguageIdResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<LanguageConfidence>getLanguageConfidences()Get the language confidences of the result.StringgetTopLanguage()Get the top language of the result.voidsetLanguageConfidences(List<LanguageConfidence> languageConfidences)Set the language confidences of the result;voidsetTopLanguage(String topLanguage)Set the top language of the result.
-
-
-
Method Detail
-
getTopLanguage
public String getTopLanguage()
Get the top language of the result.- Returns:
- The top language of the result.
-
setTopLanguage
public void setTopLanguage(String topLanguage)
Set the top language of the result.- Parameters:
topLanguage- the top language to be set for the result.
-
getLanguageConfidences
public List<LanguageConfidence> getLanguageConfidences()
Get the language confidences of the result.- Returns:
- The language confidences of the result.
-
setLanguageConfidences
public void setLanguageConfidences(List<LanguageConfidence> languageConfidences)
Set the language confidences of the result;- Parameters:
languageConfidences- the list of language confidences to be set for the result.
-
-