vn
Class PrepositionManager

java.lang.Object
  extended by vn.PrepositionManager

public class PrepositionManager
extends Object

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.

Version:
1.0, 2006.10.25
Author:
Derek Trumbo
See Also:
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

spatial

private static String spatial
Represents a specific VerbNet preposition class. This string will hold all the prepositions in the class in a delimited list.

See Also:
prepInClass(String, String)

path

private static String path
Represents a specific VerbNet preposition class. This string will hold all the prepositions in the class in a delimited list.

See Also:
prepInClass(String, String)

dest

private static String dest
Represents a specific VerbNet preposition class. This string will hold all the prepositions in the class in a delimited list.

See Also:
prepInClass(String, String)

loc

private static String loc
Represents a specific VerbNet preposition class. This string will hold all the prepositions in the class in a delimited list.

See Also:
prepInClass(String, String)

dir

private static String dir
Represents a specific VerbNet preposition class. This string will hold all the prepositions in the class in a delimited list.

See Also:
prepInClass(String, String)

dest_dir

private static String dest_dir
Represents a specific VerbNet preposition class. This string will hold all the prepositions in the class in a delimited list.

See Also:
prepInClass(String, String)

dest_conf

private static String dest_conf
Represents a specific VerbNet preposition class. This string will hold all the prepositions in the class in a delimited list.

See Also:
prepInClass(String, String)

src

private static String src
Represents a specific VerbNet preposition class. This string will hold all the prepositions in the class in a delimited list.

See Also:
prepInClass(String, String)
Constructor Detail

PrepositionManager

private PrepositionManager()
This constructor is private because the class is not intended to ever be instantiated. The Inspector's job is very procedural and thus all its members are static.

Method Detail

printPreps

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. Provided more for verification than anything else.


prepInClass

static boolean prepInClass(String cls,
                           String prp)
Returns whether or not a preposition is contained within a certain VerbNet class.

Parameters:
cls - the preposition class (i.e. "spatial" or "dest_dir")
prp - the preposition (i.e. "around" or "between")
Returns:
whether or not the preposition is contained within the given VerbNet class
See Also:
Matcher.cycPreposition(String, String)