Package org.apache.tika.language
Class LanguageProfile
java.lang.Object
org.apache.tika.language.LanguageProfile
Deprecated.
Language profile based on ngram counts.
- Since:
- Apache Tika 0.5
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Deprecated.static boolean
Deprecated. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.LanguageProfile
(int length) Deprecated.LanguageProfile
(String content) Deprecated.LanguageProfile
(String content, int length) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.Adds a single occurrence of the given ngram to this profile.void
Deprecated.Adds multiple occurrences of the given ngram to this profile.double
distance
(LanguageProfile that) Deprecated.Calculates the geometric distance between this and the given other language profile.long
getCount()
Deprecated.long
Deprecated.toString()
Deprecated.
-
Field Details
-
DEFAULT_NGRAM_LENGTH
public static final int DEFAULT_NGRAM_LENGTHDeprecated.- See Also:
-
useInterleaved
public static boolean useInterleavedDeprecated.
-
-
Constructor Details
-
LanguageProfile
public LanguageProfile(int length) Deprecated. -
LanguageProfile
public LanguageProfile()Deprecated. -
LanguageProfile
Deprecated. -
LanguageProfile
Deprecated.
-
-
Method Details
-
getCount
public long getCount()Deprecated. -
getCount
Deprecated. -
add
Deprecated.Adds a single occurrence of the given ngram to this profile.- Parameters:
ngram
- the ngram
-
add
Deprecated.Adds multiple occurrences of the given ngram to this profile.- Parameters:
ngram
- the ngramcount
- number of occurrences to add
-
distance
Deprecated.Calculates the geometric distance between this and the given other language profile.- Parameters:
that
- the other language profile- Returns:
- distance between the profiles
-
toString
Deprecated.
-