Package simplenlg.framework

Examples of simplenlg.framework.LexicalCategory


   * @return
   */
  private WordElement makeWord(LexRecord record) {
    // get basic data
    String baseForm = record.GetBase();   
    LexicalCategory category = getSimplenlgCategory(record);
    String id = record.GetEui();

    // create word class
    WordElement wordElement = new WordElement(baseForm, category, id);

View Full Code Here


  private NLGElement UnwrapWordElement(
      simplenlg.xmlrealiser.wrapper.XmlWordElement wordElement) {
    if (wordElement == null) {
      return null;
    }
    LexicalCategory lexCat = LexicalCategory.ANY;
    ElementCategory cat = UnwrapCategory(wordElement.getCat());

    if (cat != null && cat instanceof LexicalCategory) {
      lexCat = (LexicalCategory) cat;
    }
View Full Code Here

TOP

Related Classes of simplenlg.framework.LexicalCategory

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.