de.spieleck.app.cngram
Interface NGramProfile
- All Known Implementing Classes:
- NGramProfileImpl
public interface NGramProfile
A device to keep a bunch of ngram statistics.
- Version:
- $Revision: 2 $ $Date: 2006-03-27 23:00:21 +0200 (Mo, 27 Mrz 2006) $ $Author: nestefan $
- Author:
- frank nestel, $Author: nestefan $
NGRAM_PROFILE_EXTENSION
static final java.lang.String NGRAM_PROFILE_EXTENSION
- See Also:
- Constant Field Values
NORMALIZATION_STR
static final java.lang.String NORMALIZATION_STR
- See Also:
- Constant Field Values
FINISHREAD_STR
static final java.lang.String FINISHREAD_STR
- See Also:
- Constant Field Values
NO_NGRAM
static final NGram[] NO_NGRAM
CHAR_SEQ_COMPARATOR
static final java.util.Comparator CHAR_SEQ_COMPARATOR
getSorted
java.util.Iterator getSorted()
- Return sorted ngrams
- Returns:
- sorted ngrams
getCount
int getCount()
- Returns:
- Returns the number of ngrams.
getName
java.lang.String getName()
- Returns:
- Returns the name.
getNormalization
int getNormalization()
- Get the normalization of all NGrams contained.
get
NGram get(java.lang.CharSequence seq)
- Returns:
- NGram corresponding to seq, null if not found.