|
||||||||||
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 | +--edu.stanford.nlp.ie.hmm.HMMSingleFieldExtractor
An interface between the KAON extraction world, and extraction of a single field via an HMM information extractor.
Constructor Summary | |
HMMSingleFieldExtractor(String relation)
|
Method Summary | |
String |
extractField(edu.unika.aifb.kaon.Instance i,
String text)
Subclasses should override this method to perform extraction from the given text. |
String |
getDescription()
Returns a brief (one line) description of this FieldExtractor, suitable for printing. |
String |
getExtractableField()
|
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. |
boolean |
load(String hmmFile)
|
static void |
main(String[] args)
Load a serialized HMM and write to serialized HMMSingleFieldExtractor. |
void |
setHMM(HMM h)
|
static void |
train(String[] args)
Train an HMM and write to serialized HMMSingleFieldExtractor |
Methods inherited from class edu.stanford.nlp.ie.SingleFieldExtractor |
extractField, extractFields, extractFields, getExtractableFields |
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 |
Constructor Detail |
public HMMSingleFieldExtractor(String relation)
Method Detail |
public static void main(String[] args)
args
- Command line arguments:java HMMSingleFieldExtractor fieldName hmmfile
objectOutputFile
public static void train(String[] args)
public boolean load(String hmmFile)
public void setHMM(HMM h)
public String getExtractableField(edu.unika.aifb.kaon.Concept c)
getExtractableField
in class SingleFieldExtractor
public String getExtractableField()
public String extractField(edu.unika.aifb.kaon.Instance i, String text)
extractField
in class SingleFieldExtractor
public String getDescription()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |