edu.stanford.nlp.ie.merge
Class UnscoredMerger

java.lang.Object
  |
  +--edu.stanford.nlp.ie.merge.AbstractInstanceMerger
        |
        +--edu.stanford.nlp.ie.merge.GenericMerger
              |
              +--edu.stanford.nlp.ie.merge.WebSearchMerger
                    |
                    +--edu.stanford.nlp.ie.merge.UnscoredMerger
All Implemented Interfaces:
InstanceMerger, Serializable

public class UnscoredMerger
extends WebSearchMerger

Merger that handles extractors that don't rank confidences

See Also:
Serialized Form

Field Summary
protected  double PRESENCE_SCORE
          score for a field being filled
 
Fields inherited from class edu.stanford.nlp.ie.merge.GenericMerger
ignoredFields, ignoredPenalties
 
Constructor Summary
UnscoredMerger()
           
 
Method Summary
protected  double getMergedRank(edu.unika.aifb.kaon.Instance i1, edu.unika.aifb.kaon.Instance i2, Confidence c1, Confidence c2)
          The rank of a merge is the rank of the Instance resulting from the union of the fields of the two input Instances.
protected  double getRank(edu.unika.aifb.kaon.Instance i, Confidence c)
          Rank of an instance is the sum of the confidences for each field, as specified by the Confidence object.
 
Methods inherited from class edu.stanford.nlp.ie.merge.WebSearchMerger
reconcileIgnoredFields
 
Methods inherited from class edu.stanford.nlp.ie.merge.GenericMerger
compatibleConcept, concatFields, getBestInstance, getConflictPenalty, getMergedInstances, getMergePenalty, getVacuousMergePenalty, ignoreField, merge, mergeInstances, reconcileConflictedField, setConflictPenalty, setMergePenalty, setOneField, setVacuousMergePenalty, sortInstances, suppressConflictPenalty
 
Methods inherited from class edu.stanford.nlp.ie.merge.AbstractInstanceMerger
isEmpty, storeMerger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PRESENCE_SCORE

protected double PRESENCE_SCORE
score for a field being filled

Constructor Detail

UnscoredMerger

public UnscoredMerger()
Method Detail

getRank

protected double getRank(edu.unika.aifb.kaon.Instance i,
                         Confidence c)
Description copied from class: GenericMerger
Rank of an instance is the sum of the confidences for each field, as specified by the Confidence object. This effectively takes into account how filled the Instance is as well, assuming >0 rankings. It also includes the penalty and globalRanking of the Confidence object, which takes into account previous conflict penalties if this instance is the result of a previous merger. Fields specified by ignoreField are not included in the calculation.

Overrides:
getRank in class GenericMerger
Parameters:
i - the Instance to rank
c - the Confidence object describing the Instance
Returns:
the rank of the Instance

getMergedRank

protected double getMergedRank(edu.unika.aifb.kaon.Instance i1,
                               edu.unika.aifb.kaon.Instance i2,
                               Confidence c1,
                               Confidence c2)
Description copied from class: GenericMerger
The rank of a merge is the rank of the Instance resulting from the union of the fields of the two input Instances. If there are conflicting fields, then the higher-ranked field wins, but a uniform conflict penalty is assessed, as specified by conflictPenalty. Fields specified by ignoreField are not included in the calculation.

Past conflictPenalties are taken into account and are reflected in the current merged rank as well. However, there is no memory of what particular conflicting fields caused the previous conflictPenalties, so it is possible that a given field can cause several penalties over the course of several mergers.

Overrides:
getMergedRank in class GenericMerger
Parameters:
i1 - one of the Instances
i2 - the other Instance
c1 - the Confidence object corresponding to i1
c2 - the Confidence object corresponding to i2
Returns:
the rank of the resulting Instance if i1 and i2 were merged, or -1 if the Instances are not mergeable


Stanford NLP Group