Examples of GeneratorConfiguration


Examples of statechum.analysis.learning.experiments.ExperimentRunner.GeneratorConfiguration

  }
 
  protected ExperimentRunner getSingleStageEvaluator()
  {
    ExperimentRunner experiment = new ExperimentRunner();experiment.graphsPerRunner=4;experiment.setTimeBetweenHearbeats(heartbeatTestValue );
    experiment.addLearnerEvaluator(new GeneratorConfiguration(Configuration.getDefaultConfiguration(),
        countEdge_evaluator.class,"testAllGraphsSingleStage"));
    return experiment;
  }
View Full Code Here

Examples of statechum.analysis.learning.experiments.ExperimentRunner.GeneratorConfiguration

   */
  @Test
  public final void testInvalidLearnerEvaluatorName1()
  {
    final ExperimentRunner experiment = new ExperimentRunner();experiment.graphsPerRunner=4;experiment.setTimeBetweenHearbeats(heartbeatTestValue);
    experiment.addLearnerEvaluator(new GeneratorConfiguration(Configuration.getDefaultConfiguration(),
        w_evaluator.class, "invalid"+FS));
    checkForCorrectException(new whatToRun() { public @Override void run() throws NumberFormatException, IOException {
      experiment.runExperiment(new String[]{testGraphsDir.getAbsolutePath()});
    }},IllegalArgumentException.class,"invalid learner name");
  }
View Full Code Here

Examples of statechum.analysis.learning.experiments.ExperimentRunner.GeneratorConfiguration

   */
  @Test
  public final void testInvalidLearnerEvaluatorName2()
  {
    final ExperimentRunner experiment = new ExperimentRunner();experiment.graphsPerRunner=4;experiment.setTimeBetweenHearbeats(heartbeatTestValue);
    experiment.addLearnerEvaluator(new GeneratorConfiguration(Configuration.getDefaultConfiguration(),
        w_evaluator.class, ""));
    checkForCorrectException(new whatToRun() { public @Override void run() throws NumberFormatException, IOException {
      experiment.runExperiment(new String[]{testGraphsDir.getAbsolutePath()});
    }},IllegalArgumentException.class,"invalid learner name");
  }
View Full Code Here

Examples of statechum.analysis.learning.experiments.ExperimentRunner.GeneratorConfiguration

   */
  @Test
  public final void testInvalidLearnerEvaluatorName3()
  {
    final ExperimentRunner experiment = new ExperimentRunner();experiment.graphsPerRunner=4;experiment.setTimeBetweenHearbeats(heartbeatTestValue);
    experiment.addLearnerEvaluator(new GeneratorConfiguration(Configuration.getDefaultConfiguration(),
        w_evaluator.class, null));
    checkForCorrectException(new whatToRun() { public @Override void run() throws NumberFormatException, IOException {
      experiment.runExperiment(new String[]{testGraphsDir.getAbsolutePath()});
    }},IllegalArgumentException.class,"invalid learner name");
  }
View Full Code Here

Examples of synalp.commons.utils.configuration.GeneratorConfiguration

  }


  private static void setProps(int file)
  {
    GeneratorConfiguration jeniConfig = GeneratorConfiguration.getConfig();
    try
    {
      switch (file)
      {
        case 1:
          String grammar_path = jeniConfig.getProperty(GeneratorConfiguration.GRAMMAR);
          if (grammar_path != null && !grammar_path.isEmpty())
          {
            System.out.println("The path of the grammar source file is : " + grammar_path + "\n");
            setProperty("grammar", "grammar_path");
            configureMenu();
          }
          else
          {
            System.out.println("The grammar source file is not defined.");
            setProperty("grammar", "grammar_path");
            configureMenu();
          }
          break;
        case 2:
          String lexicon_path = jeniConfig.getProperty(GeneratorConfiguration.LEXICON);
          if (lexicon_path != null && !lexicon_path.isEmpty())
          {
            System.out.println("The path of the syntactic lexicon source file is : " + lexicon_path + "\n");
            setProperty("syntactic lexicon", "lexicon_path");
            configureMenu();
View Full Code Here

Examples of synalp.generation.configuration.GeneratorConfiguration

  {
    GeneratorConfigurations allConfigs = GeneratorConfigurations.createConfigurations();
    if (!allConfigs.containsKey(configName))
      throw new ConfigurationException("Error: unable to load configuration '" + configName + "', it is not found in existing configurations (" + allConfigs.keySet() + ")");

    GeneratorConfiguration config = allConfigs.get(configName);
    System.out.println(config.printConfiguration());
    JeniGenerator generator = new JeniGenerator(config);
   
    if (logger.isInfoEnabled())
      logger.info(GeneratorOption.getStatus());
   
    int index = 1;
    for(TestSuiteEntry entry : config.getTestSuite())
    {
      System.out.println("Processing " + (index++) + "/" + config.getTestSuite().size());
      run(generator, entry);
    }
  }
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.