|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.stanford.nlp.ie.AbstractFieldExtractor
Abstract superclass for implementations of the FieldExtractor interface.
Provides basic functionality for write serialization.
Shallowly implements RankedExtractor, in that no confidence rankings
are actually specified.
Added 6/4/02: Support for merging compatible instances through the
implementation of RankedExtractor
.
Constructor Summary | |
AbstractFieldExtractor()
|
Method Summary | |
edu.unika.aifb.kaon.Instance |
extractFields(edu.unika.aifb.kaon.Instance i,
String text,
Confidence c)
The one method for compliance with the RankedExtractor
interface. |
boolean |
isFieldExtractable(edu.unika.aifb.kaon.Concept c,
edu.unika.aifb.kaon.Relation r)
Default implementation, that simply looks through the results of getExtractableFields(Concept) to see if the given Relation is extractable. |
void |
storeExtractor(File out)
Serializes this FieldExtractor to the given output file. |
String |
toString()
Returns the value of getDescription() as the String representation of this Object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface edu.stanford.nlp.ie.FieldExtractor |
extractFields, getDescription, getExtractableFields |
Constructor Detail |
public AbstractFieldExtractor()
Method Detail |
public boolean isFieldExtractable(edu.unika.aifb.kaon.Concept c, edu.unika.aifb.kaon.Relation r)
isFieldExtractable
in interface FieldExtractor
public void storeExtractor(File out) throws IOException
storeExtractor
in interface FieldExtractor
IOException
public String toString()
toString
in class Object
public edu.unika.aifb.kaon.Instance extractFields(edu.unika.aifb.kaon.Instance i, String text, Confidence c)
RankedExtractor
interface. It ignores the Confidence
object; thus,
subclasses should override this method if more functionality
is required.
extractFields
in interface RankedExtractor
i
- the original Instance to extract intotext
- the text from which to extractc
- the Confidence object corresponding to the Instance passed in, which stores numerical confidence ratings for the extracted fields
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |