Class Detection (2.16.0)

public class Detection implements Serializable

Information about a language detection. Objects of this class contain the detected language and possibly a confidence level. See Also: Detecting Language

Inheritance

Object > Detection

Implements

Serializable

Methods

equals(Object obj)

public final boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getConfidence()

public float getConfidence()

Returns an optional confidence value in the interval [0,1]. The closer this value is to 1, the higher the confidence level for the language detection. Note that this value is not always available.

Returns
TypeDescription
float

getLanguage()

public String getLanguage()

Returns the code of the detected language. See Also: Supported Languages

Returns
TypeDescription
String

hashCode()

public final int hashCode()
Returns
TypeDescription
int
Overrides

toString()

public String toString()
Returns
TypeDescription
String
Overrides