uvi
Class VN_FN_Map

java.lang.Object
  extended by uvi.VN_FN_Map

public class VN_FN_Map
extends Object

This class holds the VerbNet-FrameNet mapping created by Andrew Dolbey in a format useful to the UVIG.

Version:
1.0, 2006.9.8
Author:
Derek Trumbo
See Also:
Generator.generateHTMLFiles(), Generator.addOthers(int)

Nested Class Summary
(package private) static class VN_FN_Map.ClassVerbs
          Holds the mappings for a single VerbNet class.
(package private) static class VN_FN_Map.MapPair
          Represents a single mapping between a VerbNet verb and a FrameNet frame.
 
Field Summary
private static ArrayList classes
          An array which holds all of the mapping information.
 
Constructor Summary
private VN_FN_Map()
          This constructor is private because the class is not intended to ever be instantiated.
 
Method Summary
(package private) static void addMapPair(String cls, String vn, String fn)
          Registers a VerbNet-FrameNet mapped pair to the mapping under for the given class.
(package private) static String getFrameNet(String cls, String vn)
          Returns the list of all FrameNet frames that have been mapped to the verb in the given class.
(package private) static void printAll()
          Prints all the information in the mapping.
(package private) static void printUnused()
          Prints a warning message for each VN-FN match that was not utilized somewhere in the UVI.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

classes

private static ArrayList classes
An array which holds all of the mapping information. Each element of this array is an object which contains another array that holds a list of VerbNet-FrameNet mapped pairs for that class.

See Also:
VN_FN_Map.ClassVerbs
Constructor Detail

VN_FN_Map

private VN_FN_Map()
This constructor is private because the class is not intended to ever be instantiated. The UVI generation is a very procedural process and thus all the members are static.

Method Detail

addMapPair

static void addMapPair(String cls,
                       String vn,
                       String fn)
Registers a VerbNet-FrameNet mapped pair to the mapping under for the given class. The VN-FN mapped pair is added to the list for that class. This is mainly for searching efficiency when frames are being looked up in Sweeper.printMembers().

Parameters:
cls - the class in which the verb is contained
vn - the VerbNet verb
fn - the FrameNet frame
See Also:
Generator.addOthers(int)

getFrameNet

static String getFrameNet(String cls,
                          String vn)
Returns the list of all FrameNet frames that have been mapped to the verb in the given class.

Parameters:
cls - the VerbNet class currently being scaned in the Sweeper. An example is '9.1' since the VN-FN data source does not have full class names like the XML files (i.e. 'put-9.1').
vn - the VerbNet verb being printed right now
See Also:
Sweeper.printMembers()

printAll

static void printAll()
Prints all the information in the mapping.


printUnused

static void printUnused()
Prints a warning message for each VN-FN match that was not utilized somewhere in the UVI.

See Also:
Generator.generateHTMLFiles(), getFrameNet(String, String)