public class TestFrequencyCountProvider extends FrequencyCountProviderBase
Constructor and Description |
---|
TestFrequencyCountProvider() |
Modifier and Type | Method and Description |
---|---|
protected long |
getFrequencyFromProvider(String phrase) |
String |
getID()
Returns an ID that identifies the frequency provider
|
String |
getLanguage()
Returns the language for which the frequencies are provided.
|
Iterator<String> |
getNgramIterator(int n)
Returns an iterator over all ngrams of a given size in the corpus.
|
long |
getNrOfDistinctNgrams(int n)
Returns the number of distinct ngrams of a given size in the corpus.
|
long |
getNrOfNgrams(int n)
Returns the number of ngrams of a given size in the corpus.
|
long |
getNrOfTokens() |
getFrequency, getLogLikelihood, getLogProbability, getProbability, getScaleDownFactor, setScaleDownFactor
protected long getFrequencyFromProvider(String phrase) throws IllegalArgumentException
getFrequencyFromProvider
in class FrequencyCountProviderBase
IllegalArgumentException
public long getNrOfNgrams(int n)
FrequencyCountProvider
n
- the ngram size.public long getNrOfDistinctNgrams(int n) throws IllegalArgumentException
FrequencyCountProvider
n
- the ngram size.IllegalArgumentException
public long getNrOfTokens()
public Iterator<String> getNgramIterator(int n) throws IllegalArgumentException
FrequencyCountProvider
n
- the ngram size.IllegalArgumentException
public String getLanguage() throws IllegalArgumentException
FrequencyCountProvider
IllegalArgumentException
public String getID() throws IllegalArgumentException
FrequencyCountProvider
getID
in interface FrequencyCountProvider
getID
in class FrequencyCountProviderBase
IllegalArgumentException
Copyright © 2007–2018 Ubiquitous Knowledge Processing (UKP) Lab, Technische Universität Darmstadt. All rights reserved.