Package org.lionsoul.jcseg
Interface IChunk
-
- All Known Implementing Classes:
Chunk
public interface IChunkchunk interface for Jcseg. The most important concept for the mmseg chinese segment algorithm
- Author:
- chenxin
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description doublegetAverageWordsLength()return the average word length for all the chunks.intgetLength()return the length of the chunk(the number of the word)intgetSingleWordsFrequency()doublegetSingleWordsMorphemicFreedom()return the degree of morphemic freedom for all the single words.IWord[]getWords()get the all the words in the chunk.doublegetWordsVariance()return the variance of all the words in all the chunks.
-
-
-
Method Detail
-
getWords
IWord[] getWords()
get the all the words in the chunk.
-
getAverageWordsLength
double getAverageWordsLength()
return the average word length for all the chunks.
-
getWordsVariance
double getWordsVariance()
return the variance of all the words in all the chunks.
-
getSingleWordsMorphemicFreedom
double getSingleWordsMorphemicFreedom()
return the degree of morphemic freedom for all the single words.
-
getSingleWordsFrequency
int getSingleWordsFrequency()
-
getLength
int getLength()
return the length of the chunk(the number of the word)
-
-