|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.stanford.nlp.ie.merge.AbstractInstanceMerger
Class for combining together partial instances of (presumeably) the same entity.
Constructor Summary | |
AbstractInstanceMerger()
|
Method Summary | |
protected abstract double |
getMergedRank(edu.unika.aifb.kaon.Instance i1,
edu.unika.aifb.kaon.Instance i2,
Confidence c1,
Confidence c2)
Returns the rank of the resulting Instance arising from merging the two input Instances. |
protected abstract double |
getRank(edu.unika.aifb.kaon.Instance i,
Confidence c)
Returns the rank of an Instance, which should measure how good a description of the entity the Instance is. |
protected boolean |
isEmpty(edu.unika.aifb.kaon.Instance i)
Indicates whether the Instance has no fields that contain relational information. |
protected abstract edu.unika.aifb.kaon.Instance |
merge(edu.unika.aifb.kaon.Instance i1,
edu.unika.aifb.kaon.Instance i2,
Confidence c1,
Confidence c2,
Confidence resultingConfidence)
Merges the two Instances. |
void |
storeMerger(File out)
Serializes this FieldExtractor to the given output file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface edu.stanford.nlp.ie.merge.InstanceMerger |
compatibleConcept, getBestInstance, getMergedInstances |
Constructor Detail |
public AbstractInstanceMerger()
Method Detail |
protected boolean isEmpty(edu.unika.aifb.kaon.Instance i)
i
- the Instance to check for emptiness
protected abstract double getRank(edu.unika.aifb.kaon.Instance i, Confidence c)
i
- the Instance to checkc
- the parallel Confidence object that stores field-level confidence rankings for the particular object
protected abstract double getMergedRank(edu.unika.aifb.kaon.Instance i1, edu.unika.aifb.kaon.Instance i2, Confidence c1, Confidence c2)
getRank
on the resulting Instance, because presumeably conflicting fields between
the two Instances should have a negative impact.
protected abstract edu.unika.aifb.kaon.Instance merge(edu.unika.aifb.kaon.Instance i1, edu.unika.aifb.kaon.Instance i2, Confidence c1, Confidence c2, Confidence resultingConfidence)
i1
- one Instance to mergei2
- the other Instance to mergec1
- the Confidence corresponding to i1c2
- the Confidence corresponding to i2resultingConfidence
- the Confidence corresponding to the returned Instance; this must be passed in initialized
public void storeMerger(File out) throws IOException
storeMerger
in interface InstanceMerger
an
- IOException if there is a problem with serialization (e.g. if it can't get write permission to the given File.
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |