: public String highlightTerm(String originalText , TokenGroup group)
:       {
:               if(group.getTotalScore()<=0)
:               {
:                       return originalText;
:               }
:               return "<em>" + originalText + "</em>";
:       }
:
: I'm getting '< em> some text </em>' as the result in just one case. This

...it's not clear to me the code example you just posted could ever
produce the sequence "< em>" unless "< em>" exists in the string
originalTerm ... you're not using the TokenGroup for anything besides
getTotalScore().

can you post a self contained executable example that demonstrates this
problem?



-Hoss


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to