public interface LanguageProfile
| Modifier and Type | Method and Description |
|---|---|
int |
getFrequency(java.lang.String gram) |
@NotNull java.util.List<java.lang.Integer> |
getGramLengths()
Tells what the n in n-grams are used here.
|
@NotNull LdLocale |
getLocale() |
long |
getMaxGramCount(int gramLength)
Tells how often the n-gram with the highest amount of occurrences used in this profile occurred.
|
long |
getMinGramCount(int gramLength)
Tells how often the n-gram with the lowest amount of occurrences used in this profile occurred.
|
long |
getNumGramOccurrences(int gramLength)
Tells how often all n-grams of a certain length occurred, combined.
|
int |
getNumGrams()
Tells how many n-grams there are for all n-gram sizes combined.
|
int |
getNumGrams(int gramLength)
Tells how many different n-grams there are for a certain n-gram size.
|
@NotNull java.lang.Iterable<java.util.Map.Entry<java.lang.String,java.lang.Integer>> |
iterateGrams()
Iterates all ngram strings with frequency.
|
@NotNull java.lang.Iterable<java.util.Map.Entry<java.lang.String,java.lang.Integer>> |
iterateGrams(int gramLength)
Iterates all gramLength-gram strings with frequency.
|
@NotNull @NotNull LdLocale getLocale()
@NotNull @NotNull java.util.List<java.lang.Integer> getGramLengths()
int getFrequency(java.lang.String gram)
gram - for example "a" or "foo".int getNumGrams(int gramLength)
gramLength - 1-nint getNumGrams()
long getNumGramOccurrences(int gramLength)
getNumGrams(int).gramLength - 1-nlong getMinGramCount(int gramLength)
gramLength - 1-nlong getMaxGramCount(int gramLength)
gramLength - 1-n@NotNull @NotNull java.lang.Iterable<java.util.Map.Entry<java.lang.String,java.lang.Integer>> iterateGrams()
@NotNull @NotNull java.lang.Iterable<java.util.Map.Entry<java.lang.String,java.lang.Integer>> iterateGrams(int gramLength)