Package org.apache.lucene.analysis.ko
Class Token
java.lang.Object
org.apache.lucene.analysis.morph.Token
org.apache.lucene.analysis.ko.Token
- Direct Known Subclasses:
DecompoundToken,DictionaryToken
Analyzed token with morphological data.
-
Field Summary
Fields inherited from class org.apache.lucene.analysis.morph.Token
endOffset, length, offset, posIncr, posLen, startOffset, surfaceForm, type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract POS.TagGet the left part of speech of the token.abstract KoMorphData.Morpheme[]Get theKoMorphData.Morphemedecomposition of the token.abstract POS.TypeGet thePOS.Typeof the token.abstract StringGet the reading of the token.abstract POS.TagGet the right part of speech of the token.Methods inherited from class org.apache.lucene.analysis.morph.Token
getEndOffset, getLength, getOffset, getPositionIncrement, getPositionLength, getStartOffset, getSurfaceForm, getSurfaceFormString, getType, setPositionIncrement, setPositionLength
-
Constructor Details
-
Token
protected Token(char[] surfaceForm, int offset, int length, int startOffset, int endOffset, TokenType type)
-
-
Method Details
-
getPOSType
Get thePOS.Typeof the token. -
getLeftPOS
Get the left part of speech of the token. -
getRightPOS
Get the right part of speech of the token. -
getReading
Get the reading of the token. -
getMorphemes
Get theKoMorphData.Morphemedecomposition of the token.
-