public class ProbableHypothesis<X extends AnnotationCandidate> extends Object implements Comparable<ProbableHypothesis>
Constructor and Description |
---|
ProbableHypothesis() |
ProbableHypothesis(X candidate,
double posterior) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ProbableHypothesis o) |
X |
getCandidate()
Get the value of candidate
|
double |
getProbability()
Returns the probability that this candidate belongs to an Annotation
compositon.
|
void |
setCandidate(X candidate)
Set the value of candidate
|
void |
setProbability(double probability) |
public ProbableHypothesis()
public ProbableHypothesis(X candidate, double posterior)
public X getCandidate()
public void setCandidate(X candidate)
candidate
- new value of candidatepublic double getProbability()
public void setProbability(double probability)
probability
- the probability that this candidate belongs to an
Annotation compositon. The probability is calculated as the semantic
probability of this annotation belonging to the compositon multiplied
with the syntactic probability thereof.public int compareTo(ProbableHypothesis o)
compareTo
in interface Comparable<ProbableHypothesis>
Copyright (C) 2013, 2014 Raphael Dickfelder, Jan Göpfert, Benjamin Paassen, Andreas Stöckel, licensed under the AGPL v. 3: http://openresearch.cit-ec.de/projects/scie