edu.stanford.nlp.ie
Interface FieldExtractor

All Known Implementing Classes:
AbstractFieldExtractor

public interface FieldExtractor

Interface to all information extraction components.


Method Summary
 edu.unika.aifb.kaon.Instance extractFields(edu.unika.aifb.kaon.Instance i, String text)
          Returns the given Instance with (potentially) additional fields extracted from the given text.
 String getDescription()
          Returns a brief (one line) description of this FieldExtractor, suitable for printing.
 edu.unika.aifb.kaon.Relation[] getExtractableFields(edu.unika.aifb.kaon.Concept c)
          Returns the set of Relations that this FieldExtractor knows how to extract for the given Concept.
 boolean isFieldExtractable(edu.unika.aifb.kaon.Concept c, edu.unika.aifb.kaon.Relation r)
          Returns whether the given Relation for the given Concept can be extracted by this FieldExtractor.
 void storeExtractor(File out)
          Serializes this FieldExtractor to the given File, so that it can be loaded and used as needed by other parts of the extraction system.
 

Method Detail

getDescription

public String getDescription()
Returns a brief (one line) description of this FieldExtractor, suitable for printing.


getExtractableFields

public edu.unika.aifb.kaon.Relation[] getExtractableFields(edu.unika.aifb.kaon.Concept c)
Returns the set of Relations that this FieldExtractor knows how to extract for the given Concept. Returned array may be empty (if no fields for the given concept are extractable) but will never be null. Implementing classes may ignore the given Concept if they return domain independent relations.


isFieldExtractable

public boolean isFieldExtractable(edu.unika.aifb.kaon.Concept c,
                                  edu.unika.aifb.kaon.Relation r)
Returns whether the given Relation for the given Concept can be extracted by this FieldExtractor. Equivalent to looking for the given Relation in the array returned by getExtractableFields(Concept).


extractFields

public edu.unika.aifb.kaon.Instance extractFields(edu.unika.aifb.kaon.Instance i,
                                                  String text)
Returns the given Instance with (potentially) additional fields extracted from the given text.


storeExtractor

public void storeExtractor(File out)
                    throws IOException
Serializes this FieldExtractor to the given File, so that it can be loaded and used as needed by other parts of the extraction system.

IOException


Stanford NLP Group