Example usage for org.apache.mahout.clustering.lda LDAPrintTopics main

List of usage examples for org.apache.mahout.clustering.lda LDAPrintTopics main

Introduction

In this page you can find the example usage for org.apache.mahout.clustering.lda LDAPrintTopics main.

Prototype

public static void main(String[] args) throws Exception 

Source Link

Usage

From source file:org.plista.kornakapi.core.training.LuceneVectorizerTest.java

License:Apache License

public static void printLDAPrint(RecommenderConfig conf, String input, String output) {
    List<String> argList = Lists.newLinkedList();
    argList.add("-i");
    argList.add(input);/* w  w w  .  ja v  a2 s. c o  m*/
    argList.add("-o");
    argList.add(output + "/PrintLDA.txt");
    argList.add("-w");
    argList.add("1000");
    argList.add("--dictionaryType");
    argList.add("sequencefile");
    argList.add("--dict");
    argList.add(((LDARecommenderConfig) conf).getTopicsDictionaryPath());

    String[] args = argList.toArray(new String[argList.size()]);
    try {
        LDAPrintTopics.main(args);
        //VectorDumper.main(args);
    } catch (Exception e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }

}