Examples of JeniGenerator


Examples of synalp.generation.jeni.JeniGenerator

   * @return the instance of the class built
   */
  public static Generator buildJeniDefaultAlgorithm(Grammar grammar, SyntacticLexicon lexicon, MorphRealizer morphRealizer)
  {
    Generator algorithm = null;
    algorithm = new JeniGenerator(grammar, lexicon, morphRealizer);
    return algorithm;
  }
View Full Code Here

Examples of synalp.generation.jeni.JeniGenerator

   * @return the instance of the class built
   */
  public static Generator buildJeniDefaultAlgorithm(ResourceBundle bundle)
  {
    Generator algorithm = null;
    algorithm = new JeniGenerator(bundle);
    return algorithm;
  }
View Full Code Here

Examples of synalp.generation.jeni.JeniGenerator

   * @return the instance of the class built
   */
  public static Generator buildJeniDefaultAlgorithm(Grammar grammar, SyntacticLexicon lexicon, Ranker ranker)
  {
    Generator algorithm = null;
    algorithm = new JeniGenerator(grammar, lexicon, ranker);
    return algorithm;
  }
View Full Code Here

Examples of synalp.generation.jeni.JeniGenerator

   * @return the instance of the class built
   */
  public static Generator buildJeniDefaultAlgorithm(ResourceBundle bundle, Ranker ranker)
  {
    Generator algorithm = null;
    algorithm = new JeniGenerator(bundle, ranker);
    return algorithm;
  }
View Full Code Here

Examples of synalp.generation.jeni.JeniGenerator

  @Test
  public void testServer()
  {
    ResourceBundle bundle = ResourcesBundleType.MINIMAL_BUNDLE.getBundle();
    Generator generator = new JeniGenerator(bundle);
    GeneratorServer server = new GeneratorServer(generator, bundle, 2000);
    server.start();

    Gson gson = new Gson();
    JsonObject request = new JsonObject();
View Full Code Here

Examples of synalp.generation.jeni.JeniGenerator

    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;
View Full Code Here

Examples of synalp.generation.jeni.JeniGenerator

    bundle.load();

    Utils.delete(outputDirectory);
    outputDirectory.mkdirs();

    JeniGenerator generator = lmFile == null ? new JeniGenerator(bundle) : new JeniGenerator(bundle, new NgramRanker(lmFile.getAbsolutePath(), beamSize,
                                                              "jni"));
    int index = 1;
    for(TestSuiteEntry entry : bundle.getTestSuite())
    {
      System.out.println("Processing " + (index++) + "/" + bundle.getTestSuite().size());
View Full Code Here

Examples of synalp.generation.jeni.JeniGenerator

   * @return the instance of the class built
   */
  public static Generator buildJeniDefaultAlgorithm(Grammar grammar, SyntacticLexicon lexicon)
  {
    Generator algorithm = null;
    algorithm = new JeniGenerator(grammar, lexicon);
    return algorithm;
  }
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.