Examples of JeniLexicalSelection


Examples of synalp.generation.jeni.JeniLexicalSelection

    Grammar grammar = Resources.loadGrammar(ResourcesBundleFile.KBGEN_GRAMMAR.getFile());
    SyntacticLexicon lexicon = Resources.loadLexicon(ResourcesBundleFile.KBGEN_LEXICON.getFile());
    TestSuite testSuite = Resources.loadTestSuite(ResourcesBundleFile.KBGEN_TESTSUITE.getFile());
   
    LoggerConfiguration.init();
    JeniLexicalSelection selection = new JeniLexicalSelection(grammar, lexicon);
    for(TestSuiteEntry entry : testSuite)
    {
      System.out.println(entry.getId());
      try
      {
        TimeoutManager.start();
        selection.selectEntries(entry.getSemantics());
      }
      catch(TimeoutException e)
      {
        System.err.println(e.getMessage());
      }
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.