List of usage examples for org.apache.mahout.utils.vectors RowIdJob run
@Override
public int run(String[] args) throws Exception
From source file:org.plista.kornakapi.core.training.FromDirectoryVectorizer.java
License:Apache License
/** * // ww w.ja va 2s .c o 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 2 s . co 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(); } }