public class DecompoundToken extends Token
| Constructor and Description |
|---|
DecompoundToken(POS.Tag posTag,
String surfaceForm,
int startOffset,
int endOffset)
Creates a new DecompoundToken
|
| Modifier and Type | Method and Description |
|---|---|
POS.Tag |
getLeftPOS()
Get the left part of speech of the token.
|
Dictionary.Morpheme[] |
getMorphemes()
Get the
Dictionary.Morpheme decomposition of the token. |
POS.Type |
getPOSType()
Get the
POS.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() |
getEndOffset, getLength, getOffset, getPositionIncrement, getPositionLength, getStartOffset, getSurfaceForm, getSurfaceFormString, setPositionIncrement, setPositionLengthpublic DecompoundToken(POS.Tag posTag, String surfaceForm, int startOffset, int endOffset)
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.public POS.Type getPOSType()
TokenPOS.Type of the token.getPOSType in class Tokenpublic POS.Tag getLeftPOS()
TokengetLeftPOS in class Tokenpublic POS.Tag getRightPOS()
TokengetRightPOS in class Tokenpublic String getReading()
TokengetReading in class Tokenpublic Dictionary.Morpheme[] getMorphemes()
TokenDictionary.Morpheme decomposition of the token.getMorphemes in class TokenCopyright © 2000-2024 Apache Software Foundation. All Rights Reserved.