public class Explanation extends java.lang.Object implements IExplanation
SimilarityDistance
object for two ContextVector
s.
The explanation comes in the form of a list of Explanation.ExplanationFeature
objects where each Explanation.ExplanationFeature
gives a value to a co-term
that appeared in both ContextVector
compared. The value of an ExplainedValue
does not represent any tangible reality but the bigger is that value, the most
influent the associated co-term is for the Similarrity measure.Modifier and Type | Class and Description |
---|---|
class |
Explanation.ExplanationFeature |
Constructor and Description |
---|
Explanation(int topN)
Builds an explanation object.
|
Modifier and Type | Method and Description |
---|---|
void |
addExplanation(Term coTerm,
double value) |
static Explanation |
emptyExplanation()
An empty explanation.
|
java.lang.String |
getText() |
java.util.List<Explanation.ExplanationFeature> |
getTopNFeatures()
Gives the top n important entries for this alignment process.
|
java.lang.String |
toString() |
public Explanation(int topN)
topN
- public java.util.List<Explanation.ExplanationFeature> getTopNFeatures()
public void addExplanation(Term coTerm, double value)
public static Explanation emptyExplanation()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getText()
getText
in interface IExplanation