Examples of addInflectionalVariant()


Examples of simplenlg.framework.WordElement.addInflectionalVariant()

        // store all inflectional variants, except for regular ones
        // unless explicitly set
        if (inflType != null
            && !(Inflection.REGULAR.equals(inflType) && !this.keepStandardInflections)) {
          wordElement.addInflectionalVariant(inflType,
              simplenlgInflection, inflectedForm);
        }

        // if the infl variant is the default, also set this feature on
        // the word
View Full Code Here

Examples of simplenlg.framework.WordElement.addInflectionalVariant()

   
    word.setFeature(LexicalFeature.DEFAULT_INFL, defaultInfl);
    word.setDefaultInflectionalVariant(defaultInfl);
   
    for(Inflection infl: inflections) {
      word.addInflectionalVariant(infl);
    }

    // done, return word
    return word;
  }
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.