CharTermAttribute termAtt = tokenStream.getAttribute(CharTermAttribute.class);
tokenStream.clearAttributes();
String tokenized = "";
try {
while (tokenStream.incrementToken()) {
String token = termAtt.toString();
if ( vocab != null && vocab.get(token) <= 0) {
continue;
}
tokenized += ( token + " " );