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, setPositionLength
public 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()
Token
POS.Type
of the token.getPOSType
in class Token
public POS.Tag getLeftPOS()
Token
getLeftPOS
in class Token
public POS.Tag getRightPOS()
Token
getRightPOS
in class Token
public String getReading()
Token
getReading
in class Token
public Dictionary.Morpheme[] getMorphemes()
Token
Dictionary.Morpheme
decomposition of the token.getMorphemes
in class Token
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.