info.ephyra.nlp.indices
Class FunctionWords

java.lang.Object
  extended by info.ephyra.nlp.indices.FunctionWords

public class FunctionWords
extends java.lang.Object

A dictionary of function words in English.

Internally, it uses an instance of HashDictionary to store the words.

Version:
2005-09-13
Author:
Nico Schlaefer

Field Summary
private static Dictionary dictionary
          The dictionary containing the function words.
 
Constructor Summary
FunctionWords()
           
 
Method Summary
static boolean loadIndex(java.lang.String filename)
          Creates the dictionary from a list of function words in a file.
static boolean lookup(java.lang.String word)
          Looks up a word in the dictionary.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dictionary

private static Dictionary dictionary
The dictionary containing the function words.

Constructor Detail

FunctionWords

public FunctionWords()
Method Detail

loadIndex

public static boolean loadIndex(java.lang.String filename)
Creates the dictionary from a list of function words in a file.

Parameters:
filename - file containing the function words
Returns:
true, iff the function words were loaded successfully

lookup

public static boolean lookup(java.lang.String word)
Looks up a word in the dictionary.

Parameters:
word - the word to look up
Returns:
true, iff it is a function word