|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.analysis.ja.Token
public class Token
Analyzed token with morphological data from its dictionary.
Constructor Summary | |
---|---|
Token(int wordId,
char[] surfaceForm,
int offset,
int length,
org.apache.lucene.analysis.ja.JapaneseTokenizer.Type type,
int position,
Dictionary dictionary)
|
Method Summary | |
---|---|
String |
getBaseForm()
|
String |
getInflectionForm()
|
String |
getInflectionType()
|
int |
getLength()
|
int |
getOffset()
|
String |
getPartOfSpeech()
|
int |
getPosition()
Get index of this token in input text |
int |
getPositionLength()
Get the length (in tokens) of this token. |
String |
getPronunciation()
|
String |
getReading()
|
char[] |
getSurfaceForm()
|
String |
getSurfaceFormString()
|
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 |
void |
setPositionLength(int positionLength)
Set the position length (in tokens) of this token. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Token(int wordId, char[] surfaceForm, int offset, int length, org.apache.lucene.analysis.ja.JapaneseTokenizer.Type type, int position, Dictionary dictionary)
Method Detail |
---|
public String toString()
toString
in class Object
public char[] getSurfaceForm()
public int getOffset()
public int getLength()
public String getSurfaceFormString()
public String getReading()
public String getPronunciation()
public String getPartOfSpeech()
public String getInflectionType()
public String getInflectionForm()
public String getBaseForm()
public boolean isKnown()
public boolean isUnknown()
public boolean isUser()
public int getPosition()
public void setPositionLength(int positionLength)
public int getPositionLength()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |