Package org.apache.lucene.analysis.ko
Class DecompoundToken
- java.lang.Object
-
- org.apache.lucene.analysis.ko.Token
-
- org.apache.lucene.analysis.ko.DecompoundToken
-
public class DecompoundToken extends Token
A token that was generated from a compound.
-
-
Constructor Summary
Constructors Constructor Description DecompoundToken(POS.Tag posTag, String surfaceForm, int startOffset, int endOffset)
Creates a new DecompoundToken
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description POS.Tag
getLeftPOS()
Get the left part of speech of the token.Dictionary.Morpheme[]
getMorphemes()
Get theDictionary.Morpheme
decomposition of the token.POS.Type
getPOSType()
Get thePOS.Type
of the token.String
getReading()
Get the reading of the token.POS.Tag
getRightPOS()
Get the right part of speech of the token.String
toString()
-
Methods inherited from class org.apache.lucene.analysis.ko.Token
getEndOffset, getLength, getOffset, getPositionIncrement, getPositionLength, getStartOffset, getSurfaceForm, getSurfaceFormString, setPositionIncrement, setPositionLength
-
-
-
-
Constructor Detail
-
DecompoundToken
public DecompoundToken(POS.Tag posTag, String surfaceForm, int startOffset, int endOffset)
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 Detail
-
getPOSType
public POS.Type getPOSType()
Description copied from class:Token
Get thePOS.Type
of the token.- Specified by:
getPOSType
in classToken
-
getLeftPOS
public POS.Tag getLeftPOS()
Description copied from class:Token
Get the left part of speech of the token.- Specified by:
getLeftPOS
in classToken
-
getRightPOS
public POS.Tag getRightPOS()
Description copied from class:Token
Get the right part of speech of the token.- Specified by:
getRightPOS
in classToken
-
getReading
public String getReading()
Description copied from class:Token
Get the reading of the token.- Specified by:
getReading
in classToken
-
getMorphemes
public Dictionary.Morpheme[] getMorphemes()
Description copied from class:Token
Get theDictionary.Morpheme
decomposition of the token.- Specified by:
getMorphemes
in classToken
-
-