de.aitools.dm.clusterlabeling.algorithms
Class LongTailClusterer2

java.lang.Object
  extended by de.aitools.dm.clustering.algorithms.ASoftClusterer
      extended by de.aitools.dm.clusterlabeling.algorithms.ASoftClusterLabeler
          extended by de.aitools.dm.clusterlabeling.algorithms.ACarrot2ClusterLabeler
              extended by de.aitools.dm.clusterlabeling.algorithms.LongTailClusterer2
All Implemented Interfaces:
SoftClusterer, ClusterLabeler

public class LongTailClusterer2
extends ACarrot2ClusterLabeler

Version:
$Id: LongTailClusterer2.java,v 1.6 2012/01/11 16:13:15 hoppe Exp $
Author:
dennis.hoppe(/\t)uni-weimar.de

Constructor Summary
LongTailClusterer2(ACarrot2ClusterLabeler clusterer, SearchEngine searchEngine, NotQueryBuilder notQueryBuilder, HeadAnalyzer headAnalyzer, int headSize, int tailSize)
           
 
Method Summary
 java.util.Collection<org.carrot2.core.Cluster> cluster(java.util.List<org.carrot2.core.Document> data)
          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 strQuery)
           
 ACarrot2ClusterLabeler getClusterer()
           
static HeadAnalyzer getDefaultHeadAnalyzer()
           
 HeadAnalyzer getHeadAnalyzer()
           
 SearchEngine getSearchEngine()
           
static void main(java.lang.String[] args)
           
 void setClusterer(ACarrot2ClusterLabeler clusterer)
           
 void setHeadAnalyzer(HeadAnalyzer headAnalyzer)
           
 void setSearchEngine(SearchEngine searchEngine)
           
 
Methods inherited from class de.aitools.dm.clusterlabeling.algorithms.ACarrot2ClusterLabeler
cluster, cluster, clusterSoft, clusterSoft, clusterSoft, clusterSoft, convertAssignment
 
Methods inherited from class de.aitools.dm.clusterlabeling.algorithms.ASoftClusterLabeler
getClusterLabels
 
Methods inherited from class de.aitools.dm.clustering.algorithms.ASoftClusterer
clusterSoft, getBiggestRange
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LongTailClusterer2

public LongTailClusterer2(ACarrot2ClusterLabeler clusterer,
                          SearchEngine searchEngine,
                          NotQueryBuilder notQueryBuilder,
                          HeadAnalyzer headAnalyzer,
                          int headSize,
                          int tailSize)
Parameters:
searchEngine -
keyphraseExtractor -
headSize -
tailSize -
Method Detail

getDefaultHeadAnalyzer

public static HeadAnalyzer getDefaultHeadAnalyzer()
Returns:

cluster

public java.util.Collection<org.carrot2.core.Cluster> cluster(java.util.List<org.carrot2.core.Document> data)
Description copied from class: ACarrot2ClusterLabeler
Creates the clustering based on Carrot2's implementation of Lingo.

Specified by:
cluster in class ACarrot2ClusterLabeler
Parameters:
data - text documents as input
Returns:
a Collection of Clusters

cluster

public java.util.Collection<org.carrot2.core.Cluster> cluster(java.util.List<org.carrot2.core.Document> documents,
                                                              java.lang.String strQuery)
Specified by:
cluster in class ACarrot2ClusterLabeler

getSearchEngine

public SearchEngine getSearchEngine()
Returns:
the searchEngine

setSearchEngine

public void setSearchEngine(SearchEngine searchEngine)
Parameters:
searchEngine - the searchEngine to set

getHeadAnalyzer

public HeadAnalyzer getHeadAnalyzer()
Returns:
the keyphraseExtractor

setHeadAnalyzer

public void setHeadAnalyzer(HeadAnalyzer headAnalyzer)
Parameters:
keyphraseExtractor - the keyphraseExtractor to set

getClusterer

public ACarrot2ClusterLabeler getClusterer()
Returns:
the clusterer

setClusterer

public void setClusterer(ACarrot2ClusterLabeler clusterer)
Parameters:
clusterer - the clusterer to set

main

public static void main(java.lang.String[] args)
                 throws WebsearchException
Parameters:
args -
Throws:
WebsearchException