Package simplenlg.framework

Examples of simplenlg.framework.ListElement.addComponent()


        if (DiscourseFunction.INDIRECT_OBJECT.equals(discourseValue)) {
          indirects.addComponent(currentElement);
        } else if (DiscourseFunction.OBJECT.equals(discourseValue)) {
          directs.addComponent(currentElement);
        } else {
          unknowns.addComponent(currentElement);
        }
      }
    }
    if (!InterrogativeType.isIndirectObject(phrase
        .getFeature(Feature.INTERROGATIVE_TYPE))) {
View Full Code Here


      if (currentElement != null) {
        currentElement.setFeature(InternalFeature.DISCOURSE_FUNCTION,
            function);
        // realisedElement.addComponent(currentElement);
        realisedList.addComponent(currentElement);
      }
    }

    if (!realisedList.getChildren().isEmpty()) {
      realisedElement.addComponent(realisedList);
View Full Code Here

              Feature.SUPPRESS_GENITIVE_IN_GERUND).booleanValue()) {
        subject.setFeature(Feature.POSSESSIVE, true);
      }
      currentElement = parent.realise(subject);
      if (currentElement != null) {
        realisedElement.addComponent(currentElement);
      }
    }
    return realisedElement;
  }
View Full Code Here

    if (phrase != null
        && !phrase.getFeatureAsBoolean(Feature.ELIDED).booleanValue()) {
      realisedElement = new ListElement();

      if (phrase.getFeatureAsBoolean(Feature.PRONOMINAL).booleanValue()) {
        realisedElement.addComponent(createPronoun(parent, phrase));

      } else {
        realiseSpecifier(phrase, parent, realisedElement);
        realisePreModifiers(phrase, parent, realisedElement);
        realiseHeadNoun(phrase, parent, realisedElement);
View Full Code Here

            coordinated.addCoordinate(conjunctionElement);
          }

          coordinated.addCoordinate(parent.realise(child));
        }
        realisedElement.addComponent(coordinated);
      }

      PhraseHelper.realiseList(parent, realisedElement, phrase
          .getPostModifiers(), DiscourseFunction.POST_MODIFIER);
      PhraseHelper.realiseList(parent, realisedElement, phrase
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.