|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.ephyra.nlp.indices.FunctionWords
public class FunctionWords
A dictionary of function words in English.
Internally, it uses an instance of HashDictionary to store
the words.
| 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 |
|---|
private static Dictionary dictionary
| Constructor Detail |
|---|
public FunctionWords()
| Method Detail |
|---|
public static boolean loadIndex(java.lang.String filename)
filename - file containing the function words
public static boolean lookup(java.lang.String word)
word - the word to look up
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||