@Deprecated
public class LanguageProfile
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_NGRAM_LENGTH
Deprecated.
|
static boolean |
useInterleaved
Deprecated.
|
Constructor and Description |
---|
LanguageProfile()
Deprecated.
|
LanguageProfile(int length)
Deprecated.
|
LanguageProfile(java.lang.String content)
Deprecated.
|
LanguageProfile(java.lang.String content,
int length)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.String ngram)
Deprecated.
Adds a single occurrence of the given ngram to this profile.
|
void |
add(java.lang.String ngram,
long count)
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 |
getCount(java.lang.String ngram)
Deprecated.
|
java.lang.String |
toString()
Deprecated.
|
public static final int DEFAULT_NGRAM_LENGTH
public static boolean useInterleaved
public LanguageProfile(int length)
public LanguageProfile()
public LanguageProfile(java.lang.String content, int length)
public LanguageProfile(java.lang.String content)
public long getCount()
public long getCount(java.lang.String ngram)
public void add(java.lang.String ngram)
ngram
- the ngrampublic void add(java.lang.String ngram, long count)
ngram
- the ngramcount
- number of occurrences to addpublic double distance(LanguageProfile that)
that
- the other language profilepublic java.lang.String toString()
toString
in class java.lang.Object
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"