Package weka.core

Examples of weka.core.Option.synopsis()


      if (m_Debug) {
        println("\n=== Full report ===");
        Enumeration enu = ((OptionHandler)m_Estimator).listOptions();
        while (enu.hasMoreElements()) {
          Option option = (Option) enu.nextElement();
          print(option.synopsis() + "\n"
              + option.description() + "\n");
        }
        println("\n");
      }
      result[0] = true;
View Full Code Here


      } catch (Exception ex) {
        String result = ex.getMessage() + "\n\n" + check.getClass().getName().replaceAll(".*\\.", "") + " Options:\n\n";
        Enumeration enu = check.listOptions();
        while (enu.hasMoreElements()) {
          Option option = (Option) enu.nextElement();
          result += option.synopsis() + "\n" + option.description() + "\n";
        }
        throw new Exception(result);
      }
     
      check.doTests();
View Full Code Here

      text = new StringBuffer();
      text.append("\nHelp requested:\n\n");
      enm = check.listOptions();
      while (enm.hasMoreElements()) {
        Option option = (Option) enm.nextElement();
        text.append(option.synopsis() + "\n");
        text.append(option.description() + "\n");
      }
      System.out.println("\n" + text + "\n");
    }
    else {
View Full Code Here

    result.append("\tThe script to execute.\n");

    enm = script.listOptions();
    while (enm.hasMoreElements()) {
      option = (Option) enm.nextElement();
      result.append(option.synopsis() + '\n');
      result.append(option.description() + "\n");
    }

    result.append("\n");
    result.append("Any additional options are passed on to the script as\n");
View Full Code Here

  System.out.println();

  Enumeration enu = new Main().listOptions();
  while (enu.hasMoreElements()) {
    Option option = (Option) enu.nextElement();
    System.out.println(option.synopsis());
    System.out.println(option.description());
  }

  System.out.println();
  System.exit(0);
View Full Code Here

      } catch (Exception ex) {
  String result = "";
  Enumeration enu = tt.listOptions();
  while (enu.hasMoreElements()) {
    Option option = (Option) enu.nextElement();
    result += option.synopsis() + '\n'
      + option.description() + '\n';
  }
  throw new Exception(
        "Usage:\n\n"
        + "-t <file>\n"
View Full Code Here

      if (filter instanceof OptionHandler) {
  filterOptions += "\nFilter options:\n\n";
  Enumeration enu = ((OptionHandler)filter).listOptions();
  while (enu.hasMoreElements()) {
    Option option = (Option) enu.nextElement();
    filterOptions += option.synopsis() + '\n'
      + option.description() + "\n";
  }
      }

      String genericOptions = "\nGeneral options:\n\n"
View Full Code Here

      if (filter instanceof OptionHandler) {
  filterOptions += "\nFilter options:\n\n";
  Enumeration enu = ((OptionHandler)filter).listOptions();
  while (enu.hasMoreElements()) {
    Option option = (Option) enu.nextElement();
    filterOptions += option.synopsis() + '\n'
      + option.description() + "\n";
  }
      }

      String genericOptions = "\nGeneral options:\n\n"
View Full Code Here

    result = new StringBuffer();
    result.append("\nStemmer options:\n\n");
    enm = options.elements();
    while (enm.hasMoreElements()) {
      Option option = (Option) enm.nextElement();
      result.append(option.synopsis() + "\n");
      result.append(option.description() + "\n");
    }

    return result.toString();
  }
View Full Code Here

      + "\toutput progress information to std out."
            + "\n";
    Enumeration enm = ((OptionHandler)exp).listOptions();
    while (enm.hasMoreElements()) {
      Option option = (Option) enm.nextElement();
      result += option.synopsis() + "\n";
      result += option.description() + "\n";
    }
    throw new Exception(result + "\n" + ex.getMessage());
  }
      } else {
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.