Package org.apache.lucene.analysis.ko
Class DecompoundToken
java.lang.Object
org.apache.lucene.analysis.ko.Token
org.apache.lucene.analysis.ko.DecompoundToken
A token that was generated from a compound.
-
Constructor Summary
ConstructorsConstructorDescriptionDecompoundToken(POS.Tag posTag, String surfaceForm, int startOffset, int endOffset) Creates a new DecompoundToken -
Method Summary
Modifier and TypeMethodDescriptionGet the left part of speech of the token.Get theDictionary.Morphemedecomposition of the token.Get thePOS.Typeof the token.Get the reading of the token.Get the right part of speech of the token.toString()Methods inherited from class org.apache.lucene.analysis.ko.Token
getEndOffset, getLength, getOffset, getPositionIncrement, getPositionLength, getStartOffset, getSurfaceForm, getSurfaceFormString, setPositionIncrement, setPositionLength
-
Constructor Details
-
DecompoundToken
Creates a new DecompoundToken- Parameters:
posTag- The part of speech of the token.surfaceForm- The surface form of the token.startOffset- The start offset of the token in the analyzed text.endOffset- The end offset of the token in the analyzed text.
-
-
Method Details
-
toString
-
getPOSType
Description copied from class:TokenGet thePOS.Typeof the token.- Specified by:
getPOSTypein classToken
-
getLeftPOS
Description copied from class:TokenGet the left part of speech of the token.- Specified by:
getLeftPOSin classToken
-
getRightPOS
Description copied from class:TokenGet the right part of speech of the token.- Specified by:
getRightPOSin classToken
-
getReading
Description copied from class:TokenGet the reading of the token.- Specified by:
getReadingin classToken
-
getMorphemes
Description copied from class:TokenGet theDictionary.Morphemedecomposition of the token.- Specified by:
getMorphemesin classToken
-