final Sentence sentence = ConversationParser.parse(text, new SimilarExprMatcher())
sentence.getOriginalText(); // NULL
Patch:
-----------------------------------------------------------
public class ExpressionMatcher {
...
Sentence parseSentence(String text, final ConversationContext ctx) {
if (isEmpty()) {
...
}
final String ot = text;
...
sentence.originalText = ot;
return sentence;
}
}
Anonymous
fixed by storing originalText in the SentenceImplementation constructor
Thanks for the patch.
It has been applied to cvs trunk.