public void processUtterance(Utterance utterance) throws ProcessException {
  if (utterance.getRelation(Relation.SEGMENT) == null) {
    throw new IllegalStateException("DiphoneUnitSelector: Segment relation does not exist");
  }
  utterance.setObject(SampleInfo.UTT_NAME,diphoneDatabase.getSampleInfo());
  createUnitRelation(utterance);
}

public void processUtterance ( Utterance utterance ) throws ProcessException { if ( utterance . getRelation ( Relation . SEGMENT ) == null ) { throw new IllegalStateException ( "DiphoneUnitSelector: Segment relation does not exist" ) ; } utterance . setObject ( SampleInfo . UTT_NAME , diphoneDatabase . getSampleInfo ( ) ) ; createUnitRelation ( utterance ) ; }
generates the unit relation from the segment relation .
