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
ConstructorDescriptionDecompoundToken
(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.Morpheme
decomposition of the token.Get thePOS.Type
of 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:Token
Get thePOS.Type
of the token.- Specified by:
getPOSType
in classToken
-
getLeftPOS
Description copied from class:Token
Get the left part of speech of the token.- Specified by:
getLeftPOS
in classToken
-
getRightPOS
Description copied from class:Token
Get the right part of speech of the token.- Specified by:
getRightPOS
in classToken
-
getReading
Description copied from class:Token
Get the reading of the token.- Specified by:
getReading
in classToken
-
getMorphemes
Description copied from class:Token
Get theDictionary.Morpheme
decomposition of the token.- Specified by:
getMorphemes
in classToken
-