DmitryKey / simplenlg

Automatically exported from code.google.com/p/simplenlg
1 stars 0 forks source link

problem with StandAloneExample.java #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

---
 I ran "StandAloneExample.java" but I have a "strange" result:
for the part of code testing morphology

MorphologyProcessor morph = new MorphologyProcessor();
// create inflected word
NLGElement word = nlgFactory.createWord("child", LexicalCategory.NOUN);
// setPlural is an exception to the general rule that features are set with 
setFeature
word.setPlural(true);
// get result from morph processor
String result = morph.realise(word).getRealisation();
System.out.println(result);

---

What is the expected output? 
children

What do you see instead?
child

What version of the product are you using? On what operating system?
SimpleNLG 4.2 

Original issue reported on code.google.com by lapa...@iro.umontreal.ca on 8 Apr 2011 at 11:55

GoogleCodeExporter commented 9 years ago
have updated StandAloneExample to work.  Direct access to morphology is  a bit 
messy in V4.2, hopefully will be simplified in the future

Original comment by ehud.rei...@gmail.com on 18 Apr 2011 at 1:03