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, setPositionLength
public 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()
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-2020 Apache Software Foundation. All Rights Reserved.