t.setFeatureValue ("length", 3);
t.setFeatureValue ("containsVowel", 1);
t.setFeatureValue ("in /usr/dict/words", 0);
Alphabet dict = new Alphabet();
FeatureVector fv = t.toFeatureVector (dict, false);
assertTrue (fv.numLocations() == 2);
assertTrue (fv.value (dict.lookupIndex("length")) == 3);
}
public void testTwo ()