cluster
Class PhraseFinder

java.lang.Object
  extended by cluster.PhraseFinder

public class PhraseFinder
extends java.lang.Object

Finds frequent phrases and is in charge of creating clusters for the categories.

Author:
davidc

Constructor Summary
PhraseFinder()
           
 
Method Summary
static void clearOutFolders(java.lang.String outFolder)
           
static void combineClusterResults()
          Creates HTML files that show results for all categories
static void copyOutput(java.lang.String tmpFolder, java.lang.String finalDest)
           
static void createCluster(boolean verbose, int cat)
          Change back to private soon
static void createClusters(boolean verbose)
           
static void findAndAddPhrases(boolean verbose, java.util.List<? extends ClusterDoc> docs, int vocabCutoff, java.util.List<Phrase> set, int phraseSize, VectorManager vm)
          Finds phrases and adds them to set
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PhraseFinder

public PhraseFinder()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException,
                        ClusteringException
Parameters:
args -
Throws:
java.io.IOException
java.io.IOException
ClusteringException

combineClusterResults

public static void combineClusterResults()
                                  throws java.io.IOException
Creates HTML files that show results for all categories

Throws:
java.io.IOException

copyOutput

public static void copyOutput(java.lang.String tmpFolder,
                              java.lang.String finalDest)
                       throws java.io.IOException
Throws:
java.io.IOException

clearOutFolders

public static void clearOutFolders(java.lang.String outFolder)

createClusters

public static void createClusters(boolean verbose)
                           throws ClusteringException
Throws:
ClusteringException

createCluster

public static void createCluster(boolean verbose,
                                 int cat)
                          throws java.io.IOException
Change back to private soon

Parameters:
verbose -
cat -
Throws:
java.io.IOException

findAndAddPhrases

public static void findAndAddPhrases(boolean verbose,
                                     java.util.List<? extends ClusterDoc> docs,
                                     int vocabCutoff,
                                     java.util.List<Phrase> set,
                                     int phraseSize,
                                     VectorManager vm)
                              throws java.io.IOException
Finds phrases and adds them to set

Parameters:
verbose -
docs -
vocabCutoff -
set -
phraseSize -
vm -
Throws:
java.io.IOException