@Deprecated public class LanguageProfile extends 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(String content)
Deprecated.
|
LanguageProfile(String content,
int length)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
add(String ngram)
Deprecated.
Adds a single occurrence of the given ngram to this profile.
|
void |
add(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(String ngram)
Deprecated.
|
String |
toString()
Deprecated.
|
public static final int DEFAULT_NGRAM_LENGTH
public static boolean useInterleaved
public LanguageProfile(int length)
public LanguageProfile()
public LanguageProfile(String content, int length)
public LanguageProfile(String content)
public long getCount()
public long getCount(String ngram)
public void add(String ngram)
ngram
- the ngrampublic void add(String ngram, long count)
ngram
- the ngramcount
- number of occurrences to addpublic double distance(LanguageProfile that)
that
- the other language profileCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.