sofie.maxsat
Class Measures

java.lang.Object
  extended by sofie.maxsat.Measures

public class Measures
extends java.lang.Object

Class HypothesisWithMeasures This class is part of the SOFIE system (http://mpii.de/yago-naga/sofie). It is licensed under the Creative Commons Attribution-Noncommercial-Share-Alike 3.0 Unported License (http://creativecommons.org/licenses/by-nc-sa/3.0/) by Fabian M. Suchanek (http://suchanek.name). If you use this class for scientific purposes, please cite Fabian M. Suchanek, Mauro Sozio, Gerhard Weikum "SOFIE: A Self-Organizing Framework for Information Extraction" (International World Wide Web Conference 2009) A Hypothesis that registers how many ground rules are unsatisfied.


Field Summary
protected static int FALSE
          Index in arrays
protected  double[] johnson
          Johnsons Measures (for debugging)
protected  double[] nonUnitWeight
          Non-unit rules
protected  java.util.Set<Hypothesis> relatedHypotheses
          Other related facts
protected static int TRUE
          Index in arrays
protected  double[] unitWeight
          Unit rules
 
Constructor Summary
Measures()
           
 
Method Summary
 void addMeasures(int numFreeLiterals, int numUnsatisfied, boolean literalPolarity, double weight)
          Adds the effect of a grounded rule
 void addRelatedHypotheses(java.util.Collection<Hypothesis> fs)
          Registers free hypotheses that appear together with this hypothesis in a rule
 void addRelatedHypothesis(Hypothesis f)
          Registers a free hypothesis that appears together with this hypothesis in a rule
 boolean determinedTruthValue()
          Deterministic truth value (if isDetermined)
 boolean heuristicTruthValue()
          Heuristic truth value
 boolean isDetermined()
          TRUE if the truth value of the hypothesis is determined by DUC propagation
 int johnsonsTruthValue()
          What Johnson would say (for debugging purposes)
 double priority()
          Double value that estimates how urgent this hypothesis should be set
 java.util.Set<Hypothesis> relatedHypotheses()
          returns the related hypotheses
 java.lang.String toString()
           
 boolean truthValue()
          Sets the truth value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TRUE

protected static final int TRUE
Index in arrays

See Also:
Constant Field Values

FALSE

protected static final int FALSE
Index in arrays

See Also:
Constant Field Values

nonUnitWeight

protected double[] nonUnitWeight
Non-unit rules


unitWeight

protected double[] unitWeight
Unit rules


johnson

protected double[] johnson
Johnsons Measures (for debugging)


relatedHypotheses

protected java.util.Set<Hypothesis> relatedHypotheses
Other related facts

Constructor Detail

Measures

public Measures()
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

isDetermined

public boolean isDetermined()
TRUE if the truth value of the hypothesis is determined by DUC propagation


priority

public double priority()
Double value that estimates how urgent this hypothesis should be set


heuristicTruthValue

public boolean heuristicTruthValue()
Heuristic truth value


determinedTruthValue

public boolean determinedTruthValue()
Deterministic truth value (if isDetermined)


johnsonsTruthValue

public int johnsonsTruthValue()
What Johnson would say (for debugging purposes)


truthValue

public boolean truthValue()
Sets the truth value


addMeasures

public void addMeasures(int numFreeLiterals,
                        int numUnsatisfied,
                        boolean literalPolarity,
                        double weight)
Adds the effect of a grounded rule


addRelatedHypothesis

public void addRelatedHypothesis(Hypothesis f)
Registers a free hypothesis that appears together with this hypothesis in a rule


addRelatedHypotheses

public void addRelatedHypotheses(java.util.Collection<Hypothesis> fs)
Registers free hypotheses that appear together with this hypothesis in a rule


relatedHypotheses

public java.util.Set<Hypothesis> relatedHypotheses()
returns the related hypotheses