*
* @throws ProcessException if an IOException is thrown during the
* processing of the utterance
*/
public void processUtterance(Utterance utterance) throws ProcessException {
Relation tokenRelation;
if ((tokenRelation = utterance.getRelation(Relation.TOKEN)) == null) {
throw new IllegalStateException
("TokenToWords: Token relation does not exist");
}
wordRelation = WordRelation.createWordRelation(utterance, this);
for (tokenItem = tokenRelation.getHead();
tokenItem != null;
tokenItem = tokenItem.getNext()) {
FeatureSet featureSet = tokenItem.getFeatures();
String tokenVal = featureSet.getString("name");