SparseVector[] x = new SparseVector[words.size()];
Object[] y = new Object[tags.size()];
for (int t = 0; t < x.length; t++) {
y[t] = tags.get(t);
String word = "^" + words.get(t) + "$";
x[t] = new SparseVector();
x[t].add(xAlphabet.lookupObject(word), 1);
for (int i = 0; i < word.length() - 3; i++) {
x[t].add(xAlphabet.lookupObject(word
.substring(i, i + 3)), 1);
}