|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.georgetown.gucs.dictionary.CreateDictionary
public class CreateDictionary
Creates a Dictionary for testing (uses threaded Dictionary creation)
Constructor Summary | |
---|---|
CreateDictionary()
Constructor that creates an empty dictionary and tokenizer list |
|
CreateDictionary(java.lang.String tokenizerFile)
Constructor that loads a tokenizer configuration file and sets the language of this dictionary |
Method Summary | |
---|---|
void |
addTokenizers(java.lang.String configFile)
Reads an XML file that specifies which tokenizers to use for this dictionary |
void |
create(java.lang.String dictName,
java.lang.String dirPath)
Outputs this dictionary, created for the given directory, to a file |
static void |
main(java.lang.String[] args)
|
void |
setTokenizers(java.util.Vector<java.lang.String> tokenizerVec)
Sets the list of tokenizers to use during dictionary creation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CreateDictionary()
public CreateDictionary(java.lang.String tokenizerFile)
tokenizerFile
- the string XML filename that specifies tokenizers to useMethod Detail |
---|
public void setTokenizers(java.util.Vector<java.lang.String> tokenizerVec)
tokenizerVec
- the vector of tokenizer names to use to create this dictionarypublic void addTokenizers(java.lang.String configFile)
configFile
- the string name of the XML configuration file containing this dictionary's tokenizerspublic void create(java.lang.String dictName, java.lang.String dirPath)
dictName
- the string name/path of this dictionary (also the name of the XML file containing this dictionary)dirPath
- the string path to the directory used to create this dictionarypublic static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |