|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvn.PrepositionManager
public class PrepositionManager
This class acts as a simple organizer for all of the preposition classes
in VerbNet, and the prepositions inside them. This class is utilized
in place of what would have been a more complicated parsing routine.
This class basically encompasses all the information in the document:
http://verbs.colorado.edu/verb-index/preps.txt
The uncertainties contained in the document above are ignored. In other
words, (?)isa(from,loc)
is taken to be isa(from,loc)
and %only for intrans?
is ignored.
Matcher
,
Matcher.cycPreposition(String, String)
Field Summary | |
---|---|
private static String |
dest
Represents a specific VerbNet preposition class. |
private static String |
dest_conf
Represents a specific VerbNet preposition class. |
private static String |
dest_dir
Represents a specific VerbNet preposition class. |
private static String |
dir
Represents a specific VerbNet preposition class. |
private static String |
loc
Represents a specific VerbNet preposition class. |
private static String |
path
Represents a specific VerbNet preposition class. |
private static String |
spatial
Represents a specific VerbNet preposition class. |
private static String |
src
Represents a specific VerbNet preposition class. |
Constructor Summary | |
---|---|
private |
PrepositionManager()
This constructor is private because the class is not intended to ever be instantiated. |
Method Summary | |
---|---|
(package private) static boolean |
prepInClass(String cls,
String prp)
Returns whether or not a preposition is contained within a certain VerbNet class. |
(package private) static void |
printPreps()
Prints out the prepositions and their classes, held internally, in a format identical to the original document at http://verbs.colorado.edu/verb-index/preps.txt so that the output can be diff 'ed with the original file when
tracking changes to the prepositions. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static String spatial
prepInClass(String, String)
private static String path
prepInClass(String, String)
private static String dest
prepInClass(String, String)
private static String loc
prepInClass(String, String)
private static String dir
prepInClass(String, String)
private static String dest_dir
prepInClass(String, String)
private static String dest_conf
prepInClass(String, String)
private static String src
prepInClass(String, String)
Constructor Detail |
---|
private PrepositionManager()
Method Detail |
---|
static void printPreps()
diff
'ed with the original file when
tracking changes to the prepositions. Provided more for verification
than anything else.
static boolean prepInClass(String cls, String prp)
cls
- the preposition class (i.e. "spatial" or "dest_dir")prp
- the preposition (i.e. "around" or "between")
Matcher.cycPreposition(String, String)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |