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 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.
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(String[] args)
- main method for DictionaryCreator
- Parameters:
args
- command line arguments
createDictionary
public static boolean createDictionary(String inputFile,
String encoding,
String outputFile,
String language,
String tokenizerFile,
String tokenTypeStr,
String separatorChar)
throws Exception
- Throws:
Exception
Copyright © 2006-2011 The Apache Software Foundation. All Rights Reserved.