Example usage for org.apache.mahout.utils.vectors RowIdJob RowIdJob

List of usage examples for org.apache.mahout.utils.vectors RowIdJob RowIdJob

Introduction

In this page you can find the example usage for org.apache.mahout.utils.vectors RowIdJob RowIdJob.

Prototype

RowIdJob

Source Link

Usage

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

License:Apache License

/**
 * //from  ww  w.j av a 2s .co m
 * @param inputPath
 * @param outputPath
 */
private void ensureIntegerKeys(Path inputPath, Path outputPath) {
    List<String> argList = Lists.newLinkedList();
    argList.add("-i");
    argList.add(inputPath.toString());
    argList.add("-o");
    argList.add(outputPath.toString());
    String[] args = argList.toArray(new String[argList.size()]);
    RowIdJob asd = new RowIdJob();
    try {
        asd.run(args);
    } catch (Exception e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }
}

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

License:Apache License

protected void ensureIntegerKeys(Path inputPath, Path outputPath) {
    List<String> argList = Lists.newLinkedList();
    argList.add("-i");
    argList.add(inputPath.toString());/* ww  w .j a v a 2s  .  c o  m*/
    argList.add("-o");
    argList.add(outputPath.toString());
    String[] args = argList.toArray(new String[argList.size()]);
    RowIdJob asd = new RowIdJob();
    try {
        asd.run(args);
    } catch (Exception e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }
}