de.aitools.dm.clusterlabeling.algorithms
Class LongTailClusterer
java.lang.Object
de.aitools.dm.clustering.algorithms.ASoftClusterer
de.aitools.dm.clusterlabeling.algorithms.ASoftClusterLabeler
de.aitools.dm.clusterlabeling.algorithms.ACarrot2ClusterLabeler
de.aitools.dm.clusterlabeling.algorithms.LongTailClusterer
- All Implemented Interfaces:
- SoftClusterer, ClusterLabeler
public class LongTailClusterer
- extends ACarrot2ClusterLabeler
- Version:
- $Id: LongTailClusterer.java,v 1.1 2011/11/15 10:51:25 hoppe Exp $
- Author:
- dennis.hoppe(/\t)uni-weimar.de
Method Summary |
java.util.Collection<org.carrot2.core.Cluster> |
cluster(java.util.List<org.carrot2.core.Document> documents)
Creates the clustering based on Carrot2's implementation of Lingo. |
java.util.Collection<org.carrot2.core.Cluster> |
cluster(java.util.List<org.carrot2.core.Document> documents,
java.lang.String query)
|
void |
setClusterer(ACarrot2ClusterLabeler clusterer)
|
void |
setHeadAnalyzer(KeyphraseExtractor kext)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LongTailClusterer
public LongTailClusterer(int headSize,
int tailSize)
setClusterer
public void setClusterer(ACarrot2ClusterLabeler clusterer)
setHeadAnalyzer
public void setHeadAnalyzer(KeyphraseExtractor kext)
cluster
public java.util.Collection<org.carrot2.core.Cluster> cluster(java.util.List<org.carrot2.core.Document> documents)
- Description copied from class:
ACarrot2ClusterLabeler
- Creates the clustering based on Carrot2's implementation of Lingo.
- Specified by:
cluster
in class ACarrot2ClusterLabeler
- Parameters:
documents
- text documents as input
- Returns:
- a
Collection
of Cluster
s
cluster
public java.util.Collection<org.carrot2.core.Cluster> cluster(java.util.List<org.carrot2.core.Document> documents,
java.lang.String query)
- Specified by:
cluster
in class ACarrot2ClusterLabeler