//Add the new columns. There is one for each unigram and each bigram.
for (int i = 0; i < unigrams.size(); i++) {
String name = "uni_" + unigrams.get(i);
Attribute attr = new Attribute(name);
outputFormat.insertAttributeAt(attr, outputFormat.numAttributes());
}
for (int i = 0; i < bigrams.size(); i++) {
String name = "bi_" + bigrams.get(i);
Attribute attr = new Attribute(name);