org.apache.uima.annotator.dict_annot.dictionary.impl
Class DictionaryCreator
java.lang.Object
org.apache.uima.annotator.dict_annot.dictionary.impl.DictionaryCreator
public class DictionaryCreator
- extends java.lang.Object
The DicrionaryCreator creates an dictionary XML file based on the given input
parameters. The input file must contain one dictionary entry for each line.
The line is tokenized into multi words either with the specified tokenizer
PEAR file or with the separator character.
The dictionary output XML file (UTF-8) must be updated after the creation
with some metadata information.
Method Summary |
static boolean |
createDictionary(java.lang.String inputFile,
java.lang.String encoding,
java.lang.String outputFile,
java.lang.String language,
java.lang.String tokenizerFile,
java.lang.String tokenTypeStr,
java.lang.String separatorChar)
|
static void |
main(java.lang.String[] args)
main method for DictionaryCreator |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DictionaryCreator
public DictionaryCreator()
main
public static void main(java.lang.String[] args)
- main method for DictionaryCreator
- Parameters:
args
- command line arguments
createDictionary
public static boolean createDictionary(java.lang.String inputFile,
java.lang.String encoding,
java.lang.String outputFile,
java.lang.String language,
java.lang.String tokenizerFile,
java.lang.String tokenTypeStr,
java.lang.String separatorChar)
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © 2011. All Rights Reserved.