Examples of parseOptions()


Examples of edu.ucla.sspace.common.ArgOptions.parseOptions()

//                        "possible partitionings", true, "FILE_PREFIX",
//                        "Program Options");
//         opts.addOption('n', "saveNthSolutions", "Saves only every nth solution"+
//                        " when -a is used", true, "INT", "Program Options");

        opts.parseOptions(args);

        if (opts.numPositionalArgs() < 2 || opts.hasOption("help")) {
            usage(opts);
            return;
        }
View Full Code Here

Examples of edu.ucla.sspace.common.ArgOptions.parseOptions()

                          "The number of reduced dimensions.",
                          true, "INTEGER", "Required");
        options.addOption('a', "reductionAlgorithm",
                          "The reduction algorithm to use, either NMF or SVD",
                          true, "NMF|SVD", "Required");
        options.parseOptions(args);

        LoggerUtil.setLevel(Level.FINE);

        int dimensions = options.getIntOption('r');
        MatrixFactorization reducer = null;
View Full Code Here

Examples of edu.ucla.sspace.common.ArgOptions.parseOptions()

                          "bigrams" , true, "INT",
                          "Bigram Options");
        options.addOption('v', "verbose",
                          "Print verbose output about counting status",
                          false, null, "Program Options");
        options.parseOptions(args);

        if (options.numPositionalArgs() < 3) {
            System.out.println("usage: java BigramExtractor [options] " +
                               "<OutputFile> " +
                               "<SignificanceTest> " +
View Full Code Here

Examples of edu.ucla.sspace.common.ArgOptions.parseOptions()

        options.addOption('p', "principleVectors", "Specifies the number " +
                          "of principle vectors to create",
                          true, "INT", "Creation Options");

        options.parseOptions(args);

        if (options.hasOption("help") ||
                (!options.hasOption('C') && !options.hasOption('L'))) {
            usage(options);
            return;
View Full Code Here

Examples of edu.ucla.sspace.common.ArgOptions.parseOptions()

        options.addOption('r', "inputFormat", "Input matrix file format",
                          true, "STRING", "Program Options");
        options.addOption('w', "outputFormat", "Output matrix file format",
                          true, "STRING", "Program Options");

        options.parseOptions(args);

        if (options.numPositionalArgs() == 0 || options.hasOption("help")) {
            usage(options);
            return;
        }
View Full Code Here

Examples of edu.ucla.sspace.common.ArgOptions.parseOptions()

                          "Program Options");
        options.addOption('s', "saveRecord", "Saves a record of all the " +
                          "executed commands to the specfied file", true,
                          "FILE""Program Options");

        options.parseOptions(args);

        if (options.hasOption("help")) {
            usage(options);
            return;
        }
View Full Code Here

Examples of edu.ucla.sspace.common.ArgOptions.parseOptions()

                          "word confounders.  high will pick the word with " +
                          "the closest score.  med will select a score " +
                          "randomly from the 100 closest scoring words and " +
                          "low will select any confounder at random",
                          true, "high|med|low", "Required");
        options.parseOptions(args);

        if ((!options.hasOption('n') && !options.hasOption('w')) ||
            !options.hasOption('t') ||
            options.numPositionalArgs() != 2)
            usage(options);
View Full Code Here

Examples of edu.ucla.sspace.common.ArgOptions.parseOptions()

  }

  public static void main(String[] args)
      throws IOException, InterruptedException  {
    ArgOptions options = setupOptions();
    options.parseOptions(args);

    if (!options.hasOption("docFiles") ||
        !options.hasOption("wordlist") ||
        options.numPositionalArgs() != 1) {
      System.out.println("usage: java BlogPreProcessor [options] <out_file> \n" +
View Full Code Here

Examples of org.apache.ctakes.relationextractor.eval.PreprocessAndWriteXmi.Options.parseOptions()

  public File outputRoot = new File("target/out/xmi/");

  public static void main(String[] args) throws UIMAException, IOException {
 
    Options options = new Options();
    options.parseOptions(args);
 
    File textRoot = options.textRoot;
    File xmlRoot = options.xmlRoot;
    File outputRoot = options.outputRoot;
View Full Code Here
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.