Package simplenlg.aggregation

Examples of simplenlg.aggregation.ClauseCoordinationRule.apply()


    ss.add(this.disagreePhrase("Geri Halliwell")); // Geri Halliwell disagreed with it
    ss.add(this.commentPhrase("Melanie B")); // Mealnie B commented on it
    ss.add(this.agreePhrase("you")); // you agreed with it
    ss.add(this.commentPhrase("Emma Bunton")); //Emma Bunton commented on it

    List<NLGElement> results=coord.apply(ss);
    List<String> ret=this.realizeAll(results);
    Assert.assertEquals("[John Lennon and you agreed with it, Geri Halliwell disagreed with it, Melanie B and Emma Bunton commented on it]", ret.toString());
  }
 
  private NLGElement commentPhrase(String name){  // used by testRafael
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.