|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.stanford.nlp.framenet.FNLayer
A layer of FrameNet annotation corresponds to a single target and the annotation associated with it.
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 |
public FNLayer()
public FNLayer(String name)
Method Detail |
public edu.stanford.nlp.framenet.FNFrame frame()
public void setFrame(String name)
public void addRole(String name, String words)
public void addFERole(String name, String words, int start, int end)
public void updateRole(int start, int end, String type, String label)
public FNRole[] getRoles()
public Sentence getTarget()
public void setTarget(String targetwords)
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |