|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.stanford.nlp.ie.AbstractFieldExtractor | +--edu.stanford.nlp.ie.SingleFieldExtractor
Superclass of FieldExtractors that only return a single (literal) field.
Implements the FieldExtractor interface and in turn presents a simpler, more
tailored set of abstract methods for subclasses to override.
Added 6/4/02: extractField(Instance, String, Confidence)
and extractFields(Instance, String, Confidence)
,
for rudimentary merging functionality.
Constructor Summary | |
SingleFieldExtractor()
|
Method Summary | |
abstract String |
extractField(edu.unika.aifb.kaon.Instance i,
String text)
Subclasses should override this method to perform extraction from the given text. |
String |
extractField(edu.unika.aifb.kaon.Instance i,
String text,
Confidence c)
Subclasses that support confidence rankings on extraction results should override this method, otherwise a default -1 ranking will be given as the Confidence ranking. |
edu.unika.aifb.kaon.Instance |
extractFields(edu.unika.aifb.kaon.Instance i,
String text)
Returns the given Instance with the extracted field (if any) inserted. |
edu.unika.aifb.kaon.Instance |
extractFields(edu.unika.aifb.kaon.Instance i,
String text,
Confidence c)
Identical to extractFields(Instance,String) except that a Confidence object is expected. |
abstract String |
getExtractableField(edu.unika.aifb.kaon.Concept c)
Subclasses should override this method to return the name of the Relation they know how to extract, or null if this field is not supported for the given Concept. |
edu.unika.aifb.kaon.Relation[] |
getExtractableFields(edu.unika.aifb.kaon.Concept c)
Returns the result of getExtractableField(Concept) turned into a 0 or 1 element array. |
Methods inherited from class edu.stanford.nlp.ie.AbstractFieldExtractor |
isFieldExtractable, storeExtractor, toString |
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 |
getDescription |
Constructor Detail |
public SingleFieldExtractor()
Method Detail |
public abstract String getExtractableField(edu.unika.aifb.kaon.Concept c)
public abstract String extractField(edu.unika.aifb.kaon.Instance i, String text)
public edu.unika.aifb.kaon.Relation[] getExtractableFields(edu.unika.aifb.kaon.Concept c)
c
is a real concept, not null
.
c
- The concept to get fields for
public edu.unika.aifb.kaon.Instance extractFields(edu.unika.aifb.kaon.Instance i, String text)
public String extractField(edu.unika.aifb.kaon.Instance i, String text, Confidence c)
i
- the Instance to filltext
- the text to extract fromc
- the Confidence object to modify
public edu.unika.aifb.kaon.Instance extractFields(edu.unika.aifb.kaon.Instance i, String text, Confidence c)
extractFields
in interface RankedExtractor
extractFields
in class AbstractFieldExtractor
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 |