Package org.apache.tika.language.detect
Class LanguageResult
java.lang.Object
org.apache.tika.language.detect.LanguageResult
Deprecated.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLanguageResult(String language, LanguageConfidence confidence, float rawScore) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated.The ISO 639-1 language code (plus optional country code)floatDeprecated.booleanisLanguage(String language) Deprecated.Return true if the target language matches the detected language.booleanDeprecated.booleanDeprecated.toString()Deprecated.
-
Field Details
-
NULL
Deprecated.
-
-
Constructor Details
-
LanguageResult
Deprecated.- Parameters:
language- ISO 639-1 language code (plus optional country code)rawScore- confidence of detector in the result.
-
-
Method Details
-
getLanguage
Deprecated.The ISO 639-1 language code (plus optional country code)- Returns:
- a string representation of the language code
-
getRawScore
public float getRawScore()Deprecated. -
getConfidence
Deprecated. -
isReasonablyCertain
public boolean isReasonablyCertain()Deprecated. -
isUnknown
public boolean isUnknown()Deprecated. -
isLanguage
Deprecated.Return true if the target language matches the detected language. We consider it a match if, for the precision requested or detected, it matches. This means: target | detected | match? zh | en | false zh | zh | true zh | zh-CN | true zh-CN | zh | true zh-CN | zh-TW | false zh-CN | zh-cn | true (case-insensitive)- Parameters:
language-- Returns:
-
toString
Deprecated.
-