org.datamanager.clustering.strategy.lsa
Class LsaStrategy
java.lang.Object
|
+--org.datamanager.clustering.strategy.lsa.LsaStrategy
- All Implemented Interfaces:
- ClusteringStrategy
- public class LsaStrategy
- extends Object
- implements ClusteringStrategy
This class represents a LSA strategy for clustering emails.
Latent Semantic Analysis (or LSA) gives the statistical co-occurrence picks up of the semantic
information.
- Version:
- $Revision: 1.6 $
- Author:
- Team Helium
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_THRESHOLD
public static final double DEFAULT_THRESHOLD
- See Also:
- Constant Field Values
instance
public static final LsaStrategy instance
getSimilarityBetween
public double getSimilarityBetween(Entity a,
Entity b)
- Gets the similarity between two entities by doing
a LSA look up for documents documents clustering matrix.
- Specified by:
getSimilarityBetween
in interface ClusteringStrategy
addEntity
public void addEntity(Entity entity)
- Adds the entity and words within to the Document
by Term matrix.
FIXME: this place is probably no better than
any of other the other places for this.
- Specified by:
addEntity
in interface ClusteringStrategy
getThreshold
public double getThreshold()
- Specified by:
getThreshold
in interface ClusteringStrategy
setThreshold
public void setThreshold(double threshold)
- Specified by:
setThreshold
in interface ClusteringStrategy
getInstance
public static final LsaStrategy getInstance()
See the Helium Website