this.preTag = preTag; this.postTag = postTag;
Default constructor uses HTML: <B> tags to markup terms this.preTag = "<B>"; this.postTag = "</B>";
this.preTag = "<B>"; this.postTag = "</B>";
StringBuffer returnBuffer; if(tokenGroup.getTotalScore()>0) { returnBuffer=new StringBuffer(); returnBuffer.append(preTag); returnBuffer.append(originalText); returnBuffer.append(postTag); return returnBuffer.toString(); } return originalText;