|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.ephyra.nlp.indices.Prepositions
public class Prepositions
A dictionary of prepositions in English.
Internally, it uses an instance of HashDictionary to store
the words.
| Field Summary | |
|---|---|
private static Dictionary |
dictionary
The dictionary containing the prepositions. |
| Constructor Summary | |
|---|---|
Prepositions()
|
|
| Method Summary | |
|---|---|
static boolean |
loadIndex(java.lang.String filename)
Creates the dictionary from a list of prepositions 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 Prepositions()
| Method Detail |
|---|
public static boolean loadIndex(java.lang.String filename)
filename - file containing the prepositions
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 | |||||||||