public List<String> classify(List<List<Feature>> features) throws CleartkProcessingException {
  String[][] featureStringArray=toStrings(features);
  Pipe pipe=transducer.getInputPipe();
  Instance instance=new Instance(featureStringArray,null,null,null);
  instance=pipe.instanceFrom(instance);
  Sequence<?> data=(Sequence<?>)instance.getData();
  Sequence<?> untypedSequence=transducer.transduce(data);
  Sequence<String> sequence=ReflectionUtil.uncheckedCast(untypedSequence);
  List<String> returnValues=new ArrayList<String>();
  for (int i=0; i < sequence.size(); i++) {
    String encodedOutcome=sequence.get(i);
    returnValues.add(outcomeEncoder.decode(encodedOutcome));
  }
  return returnValues;
}

public List < String > classify ( List < List < Feature > > features ) throws CleartkProcessingException { String [ ] [ ] featureStringArray = toStrings ( features ) ; Pipe pipe = transducer . getInputPipe ( ) ; Instance instance = new Instance ( featureStringArray , null , null , null ) ; instance = pipe . instanceFrom ( instance ) ; Sequence < ? > data = ( Sequence < ? > ) instance . getData ( ) ; Sequence < ? > untypedSequence = transducer . transduce ( data ) ; Sequence < String > sequence = ReflectionUtil . uncheckedCast ( untypedSequence ) ; List < String > returnValues = new ArrayList < String > ( ) ; for ( int i = 0 ; i < sequence . size ( ) ; i ++ ) { String encodedOutcome = sequence . get ( i ) ; returnValues . add ( outcomeEncoder . decode ( encodedOutcome ) ) ; } return returnValues ; }
this method classifies several instances at once
