Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.apache.lucene.analysis.de.WordlistLoader
public class WordlistLoader
extends Object
Method Summary | |
static HashSet |
|
static Hashtable |
|
static Hashtable |
|
static Hashtable |
|
public static HashSet getWordSet(File wordfile) throws IOException
Loads a text file and adds every line as an entry to a HashSet (omitting leading and trailing whitespace). Every line of the file should contain only one word. The words need to be in lowercase if you make use of an Analyzer which uses LowerCaseFilter (like GermanAnalyzer).
- Parameters:
wordfile
- File containing the wordlist
- Returns:
- A HashSet with the file's words
public static Hashtable getWordtable(File wordfile) throws IOException
Deprecated. Use
getWordSet(File)
getWordSet(File)} instead
- Parameters:
wordfile
- File object that points to the wordlist
public static Hashtable getWordtable(String wordfile) throws IOException
Deprecated. Use
getWordSet(File)
getWordSet(File)} instead
- Parameters:
wordfile
- Complete path to the wordlist
public static Hashtable getWordtable(String path, String wordfile) throws IOException
Deprecated. Use
getWordSet(File)
getWordSet(File)} instead
- Parameters:
path
- Path to the wordlistwordfile
- Name of the wordlist