edu.iu.pcl.absurdist.absurdist
Class FeatureVectorConcept
java.lang.Object
|
+--edu.iu.pcl.absurdist.absurdist.Concept
|
+--edu.iu.pcl.absurdist.absurdist.FeatureVectorConcept
- All Implemented Interfaces:
- java.io.Serializable
- public class FeatureVectorConcept
- extends Concept
This is a special subclass of Concept, in which each instance
contains an internal feature vector used to compute external similarity.
- See Also:
- Serialized Form
|
Field Summary |
java.util.Vector |
fv
The fv vector contained in each FeatureVectorConcept is
used to determine "distance" between concepts, instead
of the (d1,d2) pair in the parent Concept class. |
|
Constructor Summary |
FeatureVectorConcept(java.lang.String name,
java.lang.String category,
int rank,
java.util.Vector fv)
|
|
Method Summary |
double |
distance(Concept concept)
Computes the normalized semantic distance between this concept
and the specified one. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
fv
public java.util.Vector fv
- The fv vector contained in each FeatureVectorConcept is
used to determine "distance" between concepts, instead
of the (d1,d2) pair in the parent Concept class. Such a vector
can be used to describe, for example, the frequency of
a term's occurrences in the paragraphs of a document,
or in the documents of a corpus.
FeatureVectorConcept
public FeatureVectorConcept(java.lang.String name,
java.lang.String category,
int rank,
java.util.Vector fv)
distance
public double distance(Concept concept)
- Computes the normalized semantic distance between this concept
and the specified one. The distance is computed as
distance(a,b) = 1 - similarity(a,b),
where similarity(a,b) is a Tanimoto coefficient
f(a&b)/f(a|b)
- Overrides:
distance in class Concept