Package ai.rev.languageid.models
Class LanguageConfidence
- java.lang.Object
-
- ai.rev.languageid.models.LanguageConfidence
-
public class LanguageConfidence extends Object
Represents a predicted language and its corresponding confidences score.
-
-
Constructor Summary
Constructors Constructor Description LanguageConfidence()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DoublegetConfidence()Get the confidence of the result.StringgetLanguage()Get the language of the result.voidsetConfidence(Double confidence)Set the confidence of the result.voidsetLanguage(String language)Set the language of the result.
-
-
-
Method Detail
-
getLanguage
public String getLanguage()
Get the language of the result.- Returns:
- The language of the result.
-
setLanguage
public void setLanguage(String language)
Set the language of the result.- Parameters:
language- the language to be set for the result.
-
getConfidence
public Double getConfidence()
Get the confidence of the result.- Returns:
- The confidence of the result.
-
setConfidence
public void setConfidence(Double confidence)
Set the confidence of the result.- Parameters:
confidence- the confidence to be set for the result.
-
-