edu.stanford.nlp.framenet
Class FNRole

java.lang.Object
  |
  +--edu.stanford.nlp.framenet.FNRole

public class FNRole
extends Object

An instance of a FrameNet role annotation. Has a roleName, an associated frame, a phrase type, grammatical function, and a span of associated words.

Author:
Roger Levy, Cindi Thompson

Constructor Summary
FNRole()
           
FNRole(String name, String origwords)
          Constructor for role of the given name and consisting of the given words.
 
Method Summary
protected  int getEnd()
           
 edu.stanford.nlp.framenet.FNFrame getFrame()
           
 String getGF()
           
 String getPT()
           
 String getRoleName()
           
protected  int getStart()
           
protected  void setEnd(int end)
           
 void setGF(String label)
           
 void setPT(String label)
           
 void setRoleName(String name)
           
protected  void setStart(int start)
           
 void setWords(String origwords)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FNRole

public FNRole()

FNRole

public FNRole(String name,
              String origwords)
Constructor for role of the given name and consisting of the given words.

Method Detail

setWords

public void setWords(String origwords)

getRoleName

public String getRoleName()

setRoleName

public void setRoleName(String name)

getFrame

public edu.stanford.nlp.framenet.FNFrame getFrame()

getPT

public String getPT()

setPT

public void setPT(String label)

getGF

public String getGF()

setGF

public void setGF(String label)

setStart

protected void setStart(int start)

setEnd

protected void setEnd(int end)

getStart

protected int getStart()

getEnd

protected int getEnd()

toString

public String toString()
Overrides:
toString in class Object