edu.mit.jwi.item
Interface IVerbFrame

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
VerbFrame

public interface IVerbFrame
extends java.io.Serializable

A verb frame as specified from the verb frames data file in the Wordnet distribution

Since:
JWI 1.0
Version:
2.4.0
Author:
Mark A. Finlayson

Method Summary
 int getNumber()
          The id number of this verb frame.
 java.lang.String getTemplate()
          The string form of the template, drawn directly from the data file.
 java.lang.String instantiateTemplate(java.lang.String verb)
          Takes the supplied surface form of a verb and instantiates it into the template for the verb frame.
 

Method Detail

getNumber

int getNumber()
The id number of this verb frame. Should always return 1 or greater.

Returns:
the id number of the verb frame, will be positive
Since:
JWI 1.0

getTemplate

java.lang.String getTemplate()
The string form of the template, drawn directly from the data file. Will never return null

Returns:
the non-null, non-empty template of the verb frame
Since:
JWI 1.0

instantiateTemplate

java.lang.String instantiateTemplate(java.lang.String verb)
Takes the supplied surface form of a verb and instantiates it into the template for the verb frame. This is a convenience method; the method does no morphological processing; it does not check to see if the passed in word is actually a verb.

Parameters:
verb - the string to be substituted into the template
Returns:
the instantiated template
Throws:
java.lang.NullPointerException - if the specified string is null
Since:
JWI 1.0


Copyright © 2007-2013 Massachusetts Institute of Technology. All Rights Reserved.