Menu

#418 GetOriginalText returns Null if using SimilarExprMatcher

closed
nobody
None
2010-11-19
2010-11-17
No

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;
}
}

Discussion

  • Martin Fuchs

    Martin Fuchs - 2010-11-19

    fixed by storing originalText in the SentenceImplementation constructor

     
  • Martin Fuchs

    Martin Fuchs - 2010-11-19

    Thanks for the patch.
    It has been applied to cvs trunk.

     
  • Martin Fuchs

    Martin Fuchs - 2010-11-19
    • status: open --> closed
     

Anonymous
Anonymous

Add attachments
Cancel