|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsofie.maxsat.Measures
public class Measures
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 |
---|
protected static final int TRUE
protected static final int FALSE
protected double[] nonUnitWeight
protected double[] unitWeight
protected double[] johnson
protected java.util.Set<Hypothesis> relatedHypotheses
Constructor Detail |
---|
public Measures()
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isDetermined()
public double priority()
public boolean heuristicTruthValue()
public boolean determinedTruthValue()
public int johnsonsTruthValue()
public boolean truthValue()
public void addMeasures(int numFreeLiterals, int numUnsatisfied, boolean literalPolarity, double weight)
public void addRelatedHypothesis(Hypothesis f)
public void addRelatedHypotheses(java.util.Collection<Hypothesis> fs)
public java.util.Set<Hypothesis> relatedHypotheses()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |