Package simplenlg.features

Examples of simplenlg.features.Tense


    String realised = null;
    Object numberValue = element.getFeature(Feature.NUMBER);
    Object personValue = element.getFeature(Feature.PERSON);
    Object tense = element.getFeature(Feature.TENSE);
    Tense tenseValue;

    // AG: change to avoid deprecated getTense
    // if tense value is Tense, cast it, else default to present
    if (tense instanceof Tense) {
      tenseValue = (Tense) tense;
View Full Code Here


  static final private Stack<NLGElement> createVerbGroup(
      SyntaxProcessor parent, PhraseElement phrase) {

    String actualModal = null;
    Object formValue = phrase.getFeature(Feature.FORM);
    Tense tenseValue = phrase.getTense();
    String modal = phrase.getFeatureAsString(Feature.MODAL);
    boolean modalPast = false;
    Stack<NLGElement> vgComponents = new Stack<NLGElement>();
    boolean interrogative = phrase.hasFeature(Feature.INTERROGATIVE_TYPE);
View Full Code Here

   *
   * @return the <code>Tense</code> of this element.
   */
  @Deprecated
  public Tense getTense() {
    Tense tense = Tense.PRESENT;
    Object tenseValue = getFeature(Feature.TENSE);
    if (tenseValue instanceof Tense) {
      tense = (Tense) tenseValue;
    }
    return tense;
View Full Code Here

TOP

Related Classes of simplenlg.features.Tense

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.