public class Token extends TokenBase
Constructor and Description |
---|
Token(int wordId,
java.lang.String surface,
ViterbiNode.Type type,
int position,
Dictionary dictionary) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBaseForm()
Gets the base form (also called dictionary form) for this token (基本形)
|
java.lang.String |
getConjugationForm()
Gets the conjugation form for this token (活用形), if applicable
|
java.lang.String |
getConjugationType()
Gets the conjugation type for this token (活用型), if applicable
|
java.lang.String |
getPartOfSpeechLevel1()
Gets the 1st level part-of-speech tag for this token (品詞細分類1)
|
java.lang.String |
getPartOfSpeechLevel2()
Gets the 2nd level part-of-speech tag for this token (品詞細分類2)
|
java.lang.String |
getPartOfSpeechLevel3()
Gets the 3rd level part-of-speech tag for this token (品詞細分類3)
|
java.lang.String |
getPartOfSpeechLevel4()
Gets the 4th level part-of-speech tag for this token (品詞細分類4)
|
java.lang.String |
getPronunciation()
Gets the pronunciation for this token (発音)
|
java.lang.String |
getReading()
Gets the reading for this token (読み) in katakana script
|
getAllFeatures, getAllFeaturesArray, getFeature, getPosition, getSurface, isKnown, isUser, toString
public Token(int wordId, java.lang.String surface, ViterbiNode.Type type, int position, Dictionary dictionary)
public java.lang.String getPartOfSpeechLevel1()
public java.lang.String getPartOfSpeechLevel2()
public java.lang.String getPartOfSpeechLevel3()
public java.lang.String getPartOfSpeechLevel4()
public java.lang.String getConjugationType()
If this token does not have a conjugation type, return *
public java.lang.String getConjugationForm()
If this token does not have a conjugation form, return *
public java.lang.String getBaseForm()
public java.lang.String getReading()
public java.lang.String getPronunciation()