|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsemeval.mapping.LUChecker
public class LUChecker
LUChecker
provides several methods to process the Semlink and
PropBank data.
Constructor Summary | |
---|---|
LUChecker(java.lang.String[] corporaList,
boolean useTypes)
Default constructor that takes a list of Salsa corpora and 'useTypes' as arguments. |
Method Summary | |
---|---|
boolean |
correspondsToFrame(FrameLemmaPairPB pairPB,
java.lang.String fnFrame)
Checks via Semlink if a PropBank-Roleset corresponds to a given FrameNet frame. |
java.util.ArrayList<FrameLemmaPairFN> |
getAllFNPairs()
Returns a list of all FrameLemmaPairFN elements that have
been found in the given corpora. |
FrameLemmaPairPB |
getPBDirectlyOf(FrameLemmaPairFN pairFN)
Returns a FrameLemmaPairDB if there is only one PropBank
roleset for the given lemma. |
java.util.ArrayList<FrameLemmaPairPB> |
getPBOf(FrameLemmaPairVN pairVN)
Returns the list of FrameLemmaPairPB elements that
correspond to the given FrameLemmaPairVN element. |
java.util.ArrayList<FrameLemmaPairPB> |
getPBOverNombankAndVerbnet(FrameLemmaPairFN pairFN)
Returns the list of FrameLemmaPairPB elements that have
been retrieved over nombank and semlink (using nombank first, then
verbnet). |
java.util.ArrayList<FrameLemmaPairPB> |
getPBOverNombankDirectly(FrameLemmaPairFN pairFN)
Returns the list of FrameLemmaPairPB elements that have
been retrieved directly over nombank. |
java.lang.String |
getPosOf(FrameLemmaPairFN pairFN)
Returns the POS-Tag of a FrameLemmaPair , e. g. |
boolean |
getUseTypes()
Returns the value of 'useTypes'. |
java.util.ArrayList<FrameLemmaPairVN> |
getVNOf(FrameLemmaPairFN pairFN)
Returns the list of FrameLemmaPairVN elements that
correspond to the given FrameLemmaPairFN element. |
boolean |
isInFN12(FrameLemmaPairFN pair)
This returns true if the given
FrameLemmaPairFN exists in the FrameNet release 1.2. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LUChecker(java.lang.String[] corporaList, boolean useTypes) throws org.xml.sax.SAXException, javax.xml.parsers.ParserConfigurationException, java.io.IOException
corporaList
- Includes a list of the file names of the corpora to be parsed
(Those corpora to extract the LUs from, like e. g.
'tigerchen_merged.xml').useTypes
- This is true
if you want to regard 'types' of
LUs, not 'instances' (e. g. the LU Abounding_with<->dotted.a
can have several instances, but only one type).
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
java.io.IOException
Method Detail |
---|
public boolean correspondsToFrame(FrameLemmaPairPB pairPB, java.lang.String fnFrame)
public java.util.ArrayList<FrameLemmaPairFN> getAllFNPairs()
FrameLemmaPairFN
elements that have
been found in the given corpora.
public FrameLemmaPairPB getPBDirectlyOf(FrameLemmaPairFN pairFN)
FrameLemmaPairDB
if there is only one PropBank
roleset for the given lemma. Otherwise, it will return null
.
This method uses only PropBank, without looking at the Semlink data.
pairFN
-
public java.util.ArrayList<FrameLemmaPairPB> getPBOf(FrameLemmaPairVN pairVN)
FrameLemmaPairPB
elements that
correspond to the given FrameLemmaPairVN
element. This is
done by evaluating the Semlink data.
pairVN
-
public java.util.ArrayList<FrameLemmaPairPB> getPBOverNombankAndVerbnet(FrameLemmaPairFN pairFN)
FrameLemmaPairPB
elements that have
been retrieved over nombank and semlink (using nombank first, then
verbnet).
public java.util.ArrayList<FrameLemmaPairPB> getPBOverNombankDirectly(FrameLemmaPairFN pairFN)
FrameLemmaPairPB
elements that have
been retrieved directly over nombank.
public java.lang.String getPosOf(FrameLemmaPairFN pairFN)
FrameLemmaPair
, e. g. "V" or
"N". (as defined in frames1.2.xml)
pairFN
-
public boolean getUseTypes()
public java.util.ArrayList<FrameLemmaPairVN> getVNOf(FrameLemmaPairFN pairFN)
FrameLemmaPairVN
elements that
correspond to the given FrameLemmaPairFN
element. This is
done by evaluating the Semlink data.
pairFN
-
public boolean isInFN12(FrameLemmaPairFN pair)
true
if the given
FrameLemmaPairFN
exists in the FrameNet release 1.2.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |