edu.stanford.nlp.framenet
Class FNLayer

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

public class FNLayer
extends Object

A layer of FrameNet annotation corresponds to a single target and the annotation associated with it.

Author:
Roger Levy
, Cindi Thompson

Constructor Summary
FNLayer()
          Constructor with empty frame name.
FNLayer(String name)
          Constructor whose frame is the given name.
 
Method Summary
 void addFERole(String name, String words, int start, int end)
          Add the name and start/end positions to a role; creates the role if it is not yet in the Layer.
 void addRole(String name, String words)
           
 edu.stanford.nlp.framenet.FNFrame frame()
           
 FNRole[] getRoles()
           
 Sentence getTarget()
           
 void setFrame(String name)
           
 void setTarget(String targetwords)
           
 String toString()
           
 void updateRole(int start, int end, String type, String label)
          add PT or GT info; role may not exist yet, if not then create it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FNLayer

public FNLayer()
Constructor with empty frame name.


FNLayer

public FNLayer(String name)
Constructor whose frame is the given name.

Method Detail

frame

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

setFrame

public void setFrame(String name)

addRole

public void addRole(String name,
                    String words)

addFERole

public void addFERole(String name,
                      String words,
                      int start,
                      int end)
Add the name and start/end positions to a role; creates the role if it is not yet in the Layer.


updateRole

public void updateRole(int start,
                       int end,
                       String type,
                       String label)
add PT or GT info; role may not exist yet, if not then create it. type indicates whether PT or GF. should probably really throw some exceptions upon error.


getRoles

public FNRole[] getRoles()

getTarget

public Sentence getTarget()

setTarget

public void setTarget(String targetwords)

toString

public String toString()
Overrides:
toString in class Object