|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.illinois.cs.cogcomp.lbj.coref.exampleExtractors.ExampleExtractor<T>
edu.illinois.cs.cogcomp.lbj.coref.exampleExtractors.BatchExExtractor<T>
edu.illinois.cs.cogcomp.lbj.coref.exampleExtractors.FilteredBatchExExtractor<T>
edu.illinois.cs.cogcomp.lbj.coref.exampleExtractors.DocFilteredBatchExEx<CExample>
edu.illinois.cs.cogcomp.lbj.coref.exampleExtractors.CExampleExtractorBasic
public class CExampleExtractorBasic
Extracts coreference examples from a document
from all ordered pairs of mentions of a document such that any filters
accept them.
If a document is not provided in the constructor, it must be set first using
setDoc()
.
Field Summary | |
---|---|
private boolean |
m_bBothMentions
|
private CFilter |
m_cFilter
|
private MFilter |
m_m2Filter
|
private MFilter |
m_mFilter
|
private static long |
serialVersionUID
|
Fields inherited from class edu.illinois.cs.cogcomp.lbj.coref.exampleExtractors.DocFilteredBatchExEx |
---|
m_doc |
Constructor Summary | |
---|---|
CExampleExtractorBasic()
Constructs a coreference example extractor with the default settings. |
|
CExampleExtractorBasic(CFilter cFilter)
Constructs a coreference example extractor with a CExample filter. |
|
CExampleExtractorBasic(CFilter cFilter,
MFilter mFilter,
boolean bBothMentions)
Constructs a coreference example extractor with a CExample filter and a Mention filter. |
|
CExampleExtractorBasic(CFilter cFilter,
MFilter m1Filter,
MFilter m2Filter)
Constructs a coreference example extractor with a CExample filter and two Mention filters. |
|
CExampleExtractorBasic(Doc doc)
Constructs a coreference example extractor that will extract examples from the given document. |
|
CExampleExtractorBasic(Doc doc,
CFilter cFilter)
Constructs a coreference example extractor with a CExample filter
that will extract examples from the given document. |
Method Summary | |
---|---|
boolean |
doFiltersAccept(CExample ex)
Determines whether all applicable filters accept the example. |
protected java.util.List<CExample> |
generateAllExamples()
Generates coreference examples from all ordered pairs of mentions of a document such that any filters accept them. |
protected CExample |
getExample(Doc d,
int iM1,
int iM2)
Get a specific example. |
protected void |
setCFilter(CFilter cFilter)
Sets the coreference filter. |
protected void |
setMFilter(MFilter mFilter)
Sets the mention filter. |
protected void |
setMFilters(MFilter m1Filter,
MFilter m2Filter)
Sets both filters, and specify that each must accept its mention for an example to be accepted. |
Methods inherited from class edu.illinois.cs.cogcomp.lbj.coref.exampleExtractors.DocFilteredBatchExEx |
---|
getDoc, setDoc |
Methods inherited from class edu.illinois.cs.cogcomp.lbj.coref.exampleExtractors.FilteredBatchExExtractor |
---|
getExamples, getFilterAccepted |
Methods inherited from class edu.illinois.cs.cogcomp.lbj.coref.exampleExtractors.BatchExExtractor |
---|
getNextCached, next, recordEquivalence, reset |
Methods inherited from class edu.illinois.cs.cogcomp.lbj.coref.exampleExtractors.ExampleExtractor |
---|
close, enqueue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface edu.illinois.cs.cogcomp.lbj.coref.exampleExtractors.DocExampleExtractor |
---|
getDoc, getExamples, next, recordEquivalence, reset, setDoc |
Methods inherited from interface LBJ2.parse.Parser |
---|
close |
Field Detail |
---|
private static final long serialVersionUID
private CFilter m_cFilter
private boolean m_bBothMentions
private MFilter m_mFilter
private MFilter m_m2Filter
Constructor Detail |
---|
public CExampleExtractorBasic()
public CExampleExtractorBasic(CFilter cFilter)
CExample
filter.
cFilter
- A coreference example filter.public CExampleExtractorBasic(CFilter cFilter, MFilter mFilter, boolean bBothMentions)
CExample
filter and a Mention
filter.
cFilter
- A coreference example filter.mFilter
- A mention filter.bBothMentions
- Determines whether both mentions in an example
must be accepted by the filter for the example to be accepted.public CExampleExtractorBasic(CFilter cFilter, MFilter m1Filter, MFilter m2Filter)
CExample
filter and two Mention
filters.
The order of the mention filters is significant.
cFilter
- A coreference example filter.m1Filter
- A mention filter
for the first mention of a CExample
.m2Filter
- A mention filter
for the second mention of a CExample
.public CExampleExtractorBasic(Doc doc)
doc
- The document whose examples will be extracted.public CExampleExtractorBasic(Doc doc, CFilter cFilter)
CExample
filter
that will extract examples from the given document.
cFilter
- A coreference example filter.doc
- The document whose examples will be extracted.Method Detail |
---|
protected java.util.List<CExample> generateAllExamples()
getMentions()
method.
generateAllExamples
in class BatchExExtractor<CExample>
protected void setCFilter(CFilter cFilter)
cFilter
- The CExample
filter.protected void setMFilter(MFilter mFilter)
mFilter
- The filter.protected void setMFilters(MFilter m1Filter, MFilter m2Filter)
m1Filter
- The first filter.m2Filter
- The second filter.public boolean doFiltersAccept(CExample ex)
doFiltersAccept
in class DocFilteredBatchExEx<CExample>
ex
- The example.
protected CExample getExample(Doc d, int iM1, int iM2)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |