Examples of ListElement


Examples of simplenlg.framework.ListElement

   * @param phrase
   *            the <code>PhraseElement</code> to be realised.
   * @return the realised <code>NLGElement</code>.
   */
  static NLGElement realise(SyntaxProcessor parent, PhraseElement phrase) {
    ListElement realisedElement = null;
    Stack<NLGElement> vgComponents = null;
    Stack<NLGElement> mainVerbRealisation = new Stack<NLGElement>();
    Stack<NLGElement> auxiliaryRealisation = new Stack<NLGElement>();

    if (phrase != null) {
      vgComponents = createVerbGroup(parent, phrase);
      splitVerbGroup(vgComponents, mainVerbRealisation,
          auxiliaryRealisation);

      realisedElement = new ListElement();

      if (!phrase.hasFeature(InternalFeature.REALISE_AUXILIARY)
          || phrase.getFeatureAsBoolean(
              InternalFeature.REALISE_AUXILIARY).booleanValue()) {

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.