Package simplenlg.lexicon

Examples of simplenlg.lexicon.NIHDBLexicon


  @Before
  /*
   * * Sets up the accessor and runs it -- takes ca. 26 sec
   */
  public void setUp() {
    this.lexicon = new NIHDBLexicon(DB_FILENAME);
    this.factory = new NLGFactory(lexicon);
    this.realiser = new Realiser(this.lexicon);
  }
View Full Code Here


  @Before
  /*
   * * Sets up the accessor and runs it -- takes ca. 26 sec
   */
  public void setUp() {
    this.lexicon = new NIHDBLexicon(DB_FILENAME);
  }
View Full Code Here

    }

    if (lexType == LexiconType.XML) {
      lexicon = new XMLLexicon(lexFile);
    } else if (lexType == LexiconType.NIHDB) {
      lexicon = new NIHDBLexicon(lexFile);
    } else if (lexType == LexiconType.DEFAULT) {
      lexicon = Lexicon.getDefaultLexicon();
    }

    lexiconType = lexType;
View Full Code Here

  MultipleLexicon lexicon;


  @Before
  public void setUp() throws Exception {
    this.lexicon = new MultipleLexicon(new XMLLexicon(XML_FILENAME), new NIHDBLexicon(DB_FILENAME));
  }
View Full Code Here

TOP

Related Classes of simplenlg.lexicon.NIHDBLexicon

Copyright © 2018 www.massapicom. 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.