Package dmt.main

Source Code of dmt.main.Main

package dmt.main;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Vector;

import org.tartarus.snowball.SnowballStemmer;

import dmt.config.Configuration;
import dmt.processors.BagOfWordsProcessor;
import dmt.processors.BuildListOfWordsProcessor;
import dmt.processors.CSVProcessor;
import dmt.processors.CollectClustersProcessor;
import dmt.tools.CSVFileReader;
import dmt.tools.CSVFileWriter;

public class Main
{

  public static void main(String[] args) throws FileNotFoundException,
      IOException
  {

    CSVProcessor processor1 = new CSVProcessor(Configuration.INITIAL_DATASET, Configuration.OUTPUT_CSV_FEATURES);
    processor1.run();
   
    /*BuildListOfWordsProcessor processorBuildListOfWords = new BuildListOfWordsProcessor(
          Configuration.INITIAL_DATASET,
          Configuration.BAG_OF_WORDS_INITIAL,
          Configuration.BAG_OF_WORDS_FINAL
    );
    processorBuildListOfWords.run();
   
    BagOfWordsProcessor proc = new BagOfWordsProcessor(Configuration.INITIAL_DATASET, Configuration.OUTPUT_CSV_WORDS);
    proc.run();*/
   
    CollectClustersProcessor processor = new CollectClustersProcessor(Configuration.OUTPUT_CSV_FEATURES,
                                    "datasets/clusters_victor.csv",
                                    "datasets/clusters_marina5.csv",
                                    5,
                                    5,
                                    "output/data_with_clusters_final.csv");
    processor.run();
  }

}
TOP

Related Classes of dmt.main.Main

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.