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