|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectse.lth.cs.nlp.nlputils.framenet.FrameNet
public class FrameNet
An interface to the FrameNet database.
| Constructor Summary | |
|---|---|
FrameNet(String frames,
String frRel)
Creates a FrameNet from the database files. |
|
FrameNet(String frames,
String frRel,
boolean use_all)
Creates a FrameNet from the database files. |
|
FrameNet(String frames,
String frRel,
boolean use_all,
String filterFile)
Creates a FrameNet from the database files. |
|
FrameNet(String frames,
String frRel,
String filterFile)
Creates a FrameNet from the database files. |
|
| Method Summary | |
|---|---|
void |
dumpFrames(PrintWriter out)
|
Set<String> |
getAllLemmas()
Returns the set of all FrameNet lemmas. |
String |
getConvertedLemma(String fnLemma)
Converts an unstandardized lemma to a standardized. |
Set<Pair<String,String>> |
getExcludes(String frame)
Returns the list of Excludes pairs for the given frame. |
String |
getFNLemma(String converted)
Converts a standardized lemma to an unstandardized. |
List<String> |
getFrameElementNames(String frame)
Looks up the list of frame element names for a frame. |
List<FrameElement> |
getFrameElements(String frame)
Looks up the list of frame elements for a frame. |
List<String> |
getFramesByLemma(String lemma)
Looks up a list of frames given a lemma. |
List<Pair<String,String>> |
getLemmasByHeadPos(String lem,
String pos)
Looks up a list of lemma-frame pairs given a single-word lemma and its POS (which must be N, V, or A). |
Set<Pair<String,String>> |
getRequires(String frame)
Returns the set of Requires pairs for the given frame. |
String |
simpleDisambiguation(List<String> frames,
Collection<String> labels)
Returns the set of possible frames, given a set of assigned FEs. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FrameNet(String frames,
String frRel,
boolean use_all,
String filterFile)
frames - the name of the FrameNet file.frRel - the name of the relation file.use_all - whether all frames, or just those with non-empty annotation sets, should be used.filterFile - the name of a file with the list of used frames. May be null.
public FrameNet(String frames,
String frRel)
frames - the name of the FrameNet file.frRel - the name of the relation file.
public FrameNet(String frames,
String frRel,
boolean use_all)
frames - the name of the FrameNet file.frRel - the name of the relation file.use_all - whether all frames, or just those with non-empty annotation sets, should be used.
public FrameNet(String frames,
String frRel,
String filterFile)
frames - the name of the FrameNet file.frRel - the name of the relation file.filterFile - the name of a file with the list of used frames. May be null.| Method Detail |
|---|
public List<String> getFramesByLemma(String lemma)
lemma - the lemma.
public List<Pair<String,String>> getLemmasByHeadPos(String lem,
String pos)
lem - the single-word lemma.pos - the pos of the lemma.
public List<FrameElement> getFrameElements(String frame)
frame - the frame.
public List<String> getFrameElementNames(String frame)
frame - the frame.
public String getConvertedLemma(String fnLemma)
fnLemma - the lemma in unstandardized FrameNet form.
public String getFNLemma(String converted)
converted - the standardized lemma.
public String simpleDisambiguation(List<String> frames,
Collection<String> labels)
frames - the list of all possible frames.labels - the assigned FEs.
public Set<String> getAllLemmas()
public Set<Pair<String,String>> getExcludes(String frame)
frame - the frame.
public Set<Pair<String,String>> getRequires(String frame)
frame - the frame.
public void dumpFrames(PrintWriter out)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||