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.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.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: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 theKoMorphData.Morphemedecomposition of the token.- Specified by:
getMorphemesin classToken
-