| Modifier and Type | Field and Description |
|---|---|
static String[] |
EN_POSPEECH |
static String[] |
MIX_POSPEECH |
static String[] |
NAME_POSPEECH |
static String[] |
NUMERIC_POSPEECH |
static String[] |
PPT_POSPEECH |
static String[] |
PUNCTUATION |
static int |
T_BASIC_LATIN
Latin series.
|
static int |
T_CJK_PINYIN
Pinyin
|
static int |
T_CJK_WORD
China,JPanese,Korean words
|
static int |
T_CN_NAME
Chinese last name.
|
static int |
T_CN_NICKNAME
Chinese nickname like: 老陈
|
static int |
T_CN_NUMERIC
Chinese numeric
|
static int |
T_LETTER_NUMBER
letter number like 'ⅠⅡ'
|
static int |
T_MIXED_WORD
Chinese and English mix word like B超,SIM卡.
|
static int |
T_OTHER_NUMBER
other number like '①⑩⑽㈩'
|
static int |
T_PUNCTUATION |
static int |
T_UNRECOGNIZE_WORD
useless chars like the CJK punctuation
|
static String[] |
TIME_POSPEECH |
static String[] |
UNRECOGNIZE |
| Modifier and Type | Method and Description |
|---|---|
void |
addPartSpeech(String ps)
add a new part to speech to the word.
|
void |
addSyn(String s)
add a new syn word to the word.
|
IWord |
clone()
make clone available
|
boolean |
equals(Object o)
I mean: you have to rewrite the equals method
cause the Jcseg require it
|
String |
getEntity()
get the entity name of the word
|
int |
getFrequency()
return the frequency of the word,
use only when the word's length is one.
|
int |
getLength()
return the length of the word
|
String[] |
getPartSpeech()
return the part of speech of the word.
|
String |
getPinyin()
return the pinying of the word
|
int |
getPosition()
return the start position of the word.
|
String[] |
getSyn()
return the syn words of the word.
|
int |
getType()
return the type of the word
|
String |
getValue()
return the value of the word
|
void |
setEntity(String entity)
set the entity name of the word
|
void |
setLength(int length)
self define the length
|
void |
setPartSpeech(String[] ps) |
void |
setPinyin(String py)
set the pinying of the word
|
void |
setPosition(int pos)
set the position of the word
|
void |
setSyn(String[] syn) |
static final String[] NAME_POSPEECH
static final String[] NUMERIC_POSPEECH
static final String[] TIME_POSPEECH
static final String[] EN_POSPEECH
static final String[] MIX_POSPEECH
static final String[] PPT_POSPEECH
static final String[] PUNCTUATION
static final String[] UNRECOGNIZE
static final int T_CJK_WORD
static final int T_MIXED_WORD
static final int T_CN_NAME
static final int T_CN_NICKNAME
static final int T_BASIC_LATIN
static final int T_LETTER_NUMBER
static final int T_OTHER_NUMBER
static final int T_CJK_PINYIN
static final int T_CN_NUMERIC
static final int T_PUNCTUATION
static final int T_UNRECOGNIZE_WORD
String getValue()
int getLength()
void setLength(int length)
length - int getFrequency()
int getType()
void setPosition(int pos)
pos - int getPosition()
String getEntity()
void setEntity(String entity)
entity - String getPinyin()
String[] getSyn()
void setSyn(String[] syn)
String[] getPartSpeech()
void setPartSpeech(String[] ps)
void setPinyin(String py)
py - void addPartSpeech(String ps)
ps - void addSyn(String s)
s - boolean equals(Object o)
IWord clone()
Copyright © 2017. All Rights Reserved.