Package org.lionsoul.jcseg.segmenter
Class Chunk
- java.lang.Object
-
- org.lionsoul.jcseg.segmenter.Chunk
-
-
Method Summary
All Methods Instance Methods Concrete 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.StringtoString()
-
-
-
Constructor Detail
-
Chunk
public Chunk(IWord[] words)
-
-
Method Detail
-
getWords
public IWord[] getWords()
Description copied from interface:IChunkget the all the words in the chunk.- Specified by:
getWordsin interfaceIChunk- See Also:
IChunk.getWords()
-
getAverageWordsLength
public double getAverageWordsLength()
Description copied from interface:IChunkreturn the average word length for all the chunks.- Specified by:
getAverageWordsLengthin interfaceIChunk- See Also:
IChunk.getAverageWordsLength()
-
getWordsVariance
public double getWordsVariance()
Description copied from interface:IChunkreturn the variance of all the words in all the chunks.- Specified by:
getWordsVariancein interfaceIChunk- See Also:
IChunk.getWordsVariance()
-
getSingleWordsMorphemicFreedom
public double getSingleWordsMorphemicFreedom()
Description copied from interface:IChunkreturn the degree of morphemic freedom for all the single words.- Specified by:
getSingleWordsMorphemicFreedomin interfaceIChunk- See Also:
IChunk.getSingleWordsMorphemicFreedom()
-
getSingleWordsFrequency
public int getSingleWordsFrequency()
- Specified by:
getSingleWordsFrequencyin interfaceIChunk
-
getLength
public int getLength()
Description copied from interface:IChunkreturn the length of the chunk(the number of the word)- Specified by:
getLengthin interfaceIChunk- See Also:
IChunk.getLength()
-
toString
public String toString()
- Overrides:
toStringin classObject- See Also:
Object.toString()
-
-