public class DictionaryWorker
extends java.lang.Object
implements java.lang.Runnable
Constructor and Description |
---|
DictionaryWorker(java.io.File filename,
java.util.List<java.lang.String> tokenizers,
Dictionary dict)
Constructor that specifies a file to tokenize and add to an existing dictionary
|
Modifier and Type | Method and Description |
---|---|
void |
run()
Adds a file to an existing dictionary using the given tokenizers
|
public DictionaryWorker(java.io.File filename, java.util.List<java.lang.String> tokenizers, Dictionary dict)
filename
- the file to tokenize and add to this dictionarytokenizers
- the list containing the names of the tokenizers to use on this filedict
- the dictionary to add the file to