Package org.apache.lucene.analysis.ko
Class DecompoundToken
java.lang.Object
org.apache.lucene.analysis.morph.Token
org.apache.lucene.analysis.ko.Token
org.apache.lucene.analysis.ko.DecompoundToken
A token that was generated from a compound.
-
Field Summary
Fields inherited from class org.apache.lucene.analysis.morph.Token
endOffset, length, offset, posIncr, posLen, startOffset, surfaceForm, type
-
Constructor Summary
ConstructorsConstructorDescriptionDecompoundToken
(POS.Tag posTag, String surfaceForm, int startOffset, int endOffset, TokenType type) Creates a new DecompoundToken -
Method Summary
Modifier and TypeMethodDescriptionGet the left part of speech of the token.Get theKoMorphData.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.morph.Token
getEndOffset, getLength, getOffset, getPositionIncrement, getPositionLength, getStartOffset, getSurfaceForm, getSurfaceFormString, getType, setPositionIncrement, setPositionLength
-
Constructor Details
-
DecompoundToken
public DecompoundToken(POS.Tag posTag, String surfaceForm, int startOffset, int endOffset, TokenType type) 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.type
- The type of this token.
-
-
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 theKoMorphData.Morpheme
decomposition of the token.- Specified by:
getMorphemes
in classToken
-