org.apache.lucene.analysis.nl

Class WordlistLoader


public class WordlistLoader
extends Object

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.
Author:
Gerhard Schwarz

Method Summary

static HashMap
getStemDict(File wordstemfile)
Deprecated. use WordlistLoader.getStemDict(File) instead
static HashMap
getWordtable(File wordfile)
Deprecated. use WordlistLoader.getWordSet(File) instead
static HashMap
getWordtable(String wordfile)
Deprecated. use WordlistLoader.getWordSet(File) instead
static HashMap
getWordtable(String path, String wordfile)
Deprecated. use WordlistLoader.getWordSet(File) instead

Method Details

getStemDict

public static HashMap getStemDict(File wordstemfile)

Deprecated. use WordlistLoader.getStemDict(File) instead

Reads a stemsdictionary. Each line contains: word \t stem i.e. tab seperated)
Returns:
Stem dictionary that overrules, the stemming algorithm

getWordtable

public static HashMap getWordtable(File wordfile)

Deprecated. use WordlistLoader.getWordSet(File) instead

Parameters:
wordfile - File containing the wordlist

getWordtable

public static HashMap getWordtable(String wordfile)

Deprecated. use WordlistLoader.getWordSet(File) instead

Parameters:
wordfile - Complete path to the wordlist

getWordtable

public static HashMap getWordtable(String path,
                                   String wordfile)

Deprecated. use WordlistLoader.getWordSet(File) instead

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

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