public class DictionaryToken extends Token
Dictionary.| Constructor and Description |
|---|
DictionaryToken(KoreanTokenizer.Type type,
Dictionary dictionary,
int wordId,
char[] surfaceForm,
int offset,
int length,
int startOffset,
int endOffset) |
| 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.
|
KoreanTokenizer.Type |
getType()
Returns the type of this token
|
boolean |
isKnown()
Returns true if this token is known word
|
boolean |
isUnknown()
Returns true if this token is unknown word
|
boolean |
isUser()
Returns true if this token is defined in user dictionary
|
String |
toString() |
getEndOffset, getLength, getOffset, getPositionIncrement, getPositionLength, getStartOffset, getSurfaceForm, getSurfaceFormString, setPositionIncrement, setPositionLengthpublic DictionaryToken(KoreanTokenizer.Type type, Dictionary dictionary, int wordId, char[] surfaceForm, int offset, int length, int startOffset, int endOffset)
public KoreanTokenizer.Type getType()
public boolean isKnown()
public boolean isUnknown()
public boolean isUser()
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.