org.apache.lucene.analysis.de
Class WordlistLoader

java.lang.Object
  extended by org.apache.lucene.analysis.de.WordlistLoader

Deprecated. Use WordlistLoader instead

public class WordlistLoader
extends Object

Loader for text files that represent a list of stopwords.

Version:
$Id: WordlistLoader.java 150527 2004-09-20 19:27:01Z dnaber $
Author:
Gerhard Schwarz

Constructor Summary
WordlistLoader()
          Deprecated.  
 
Method Summary
static HashSet getWordSet(File wordfile)
          Deprecated. Loads a text file and adds every line as an entry to a HashSet (omitting leading and trailing whitespace).
static Hashtable getWordtable(File wordfile)
          Deprecated. Use getWordSet(File) getWordSet(File)} instead
static Hashtable getWordtable(String wordfile)
          Deprecated. Use getWordSet(File) getWordSet(File)} instead
static Hashtable getWordtable(String path, String wordfile)
          Deprecated. Use getWordSet(File) getWordSet(File)} instead
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WordlistLoader

public WordlistLoader()
Deprecated. 
Method Detail

getWordSet

public static HashSet getWordSet(File wordfile)
                          throws IOException
Deprecated. 
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
Throws:
IOException

getWordtable

public static Hashtable getWordtable(String path,
                                     String wordfile)
                              throws IOException
Deprecated. Use getWordSet(File) getWordSet(File)} instead

Parameters:
path - Path to the wordlist
wordfile - Name of the wordlist
Throws:
IOException

getWordtable

public static Hashtable getWordtable(String wordfile)
                              throws IOException
Deprecated. Use getWordSet(File) getWordSet(File)} instead

Parameters:
wordfile - Complete path to the wordlist
Throws:
IOException

getWordtable

public static Hashtable getWordtable(File wordfile)
                              throws IOException
Deprecated. Use getWordSet(File) getWordSet(File)} instead

Parameters:
wordfile - File object that points to the wordlist
Throws:
IOException


Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.