org.apache.lucene.analysis.nl
public class WordlistLoader extends Object
Deprecated: use WordlistLoader instead
Loads a text file and adds every line as an entry to a Hashtable. Every line should contain only one word. If the file is not found or on any error, an empty table is returned.Method Summary | |
---|---|
static HashMap | getStemDict(File wordstemfile)
Reads a stemsdictionary. |
static HashMap | getWordtable(String path, String wordfile) |
static HashMap | getWordtable(String wordfile) |
static HashMap | getWordtable(File wordfile) |
Deprecated: use getStemDict instead
Reads a stemsdictionary. Each line contains: word \t stem i.e. tab seperated)Returns: Stem dictionary that overrules, the stemming algorithm
Deprecated: use getWordSet instead
Parameters: path Path to the wordlist wordfile Name of the wordlist
Deprecated: use getWordSet instead
Parameters: wordfile Complete path to the wordlist
Deprecated: use getWordSet instead
Parameters: wordfile File containing the wordlist