StringTuple value = it.next();
Vector vector = new RandomAccessSparseVector(dimension, value.length()); // guess at initial size
if (maxNGramSize >= 2) {
ShingleFilter sf = new ShingleFilter(new IteratorTokenStream(value.getEntries().iterator()), maxNGramSize);
do {
String term = (sf.getAttribute(TermAttribute.class)).term();
if (term.length() > 0 && dictionary.containsKey(term)) { // ngram
int termId = dictionary.get(term);