|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jvntextpro.data.ContextGenerator jvnsegmenter.BasicContextGenerator jvnsegmenter.LexiconContextGenerator
public class LexiconContextGenerator
The Class LexiconContextGenerator.
Constructor Summary | |
---|---|
LexiconContextGenerator(org.w3c.dom.Element node)
Instantiates a new lexicon context generator. |
Method Summary | |
---|---|
java.lang.String[] |
getContext(Sentence sent,
int pos)
Gets the context. |
static boolean |
inVietnameseDict(java.lang.String word)
In vietnamese dict. |
static boolean |
inViFamilyNameList(java.lang.String word)
In vi family name list. |
static boolean |
inViLastNameList(java.lang.String word)
In vi last name list. |
static boolean |
inViLocations(java.lang.String word)
In vi locations. |
static boolean |
inViMiddleNameList(java.lang.String word)
In vi middle name list. |
static void |
loadVietnameseDict(java.lang.String filename)
Load vietnamese dict. |
static void |
loadViLocationList(java.lang.String filename)
Load vi location list. |
static void |
loadViPersonalNames(java.lang.String filename)
Load vi personal names. |
Methods inherited from class jvnsegmenter.BasicContextGenerator |
---|
readFeatureNodes |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LexiconContextGenerator(org.w3c.dom.Element node)
node
- the nodeMethod Detail |
---|
public java.lang.String[] getContext(Sentence sent, int pos)
ContextGenerator
getContext
in class ContextGenerator
sent
- the sentpos
- the pos
public static boolean inVietnameseDict(java.lang.String word)
word
- the word
public static boolean inViFamilyNameList(java.lang.String word)
word
- the word
public static boolean inViMiddleNameList(java.lang.String word)
word
- the word
public static boolean inViLastNameList(java.lang.String word)
word
- the word
public static boolean inViLocations(java.lang.String word)
word
- the word
public static void loadVietnameseDict(java.lang.String filename)
filename
- the filenamepublic static void loadViPersonalNames(java.lang.String filename)
filename
- the filenamepublic static void loadViLocationList(java.lang.String filename)
filename
- the filename
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |