public < T extends CoreLabel > Datum < String , String > makeDatum ( List < IN > info , int loc , FeatureFactory featureFactory ) { PaddedList < IN > pInfo = new PaddedList < IN > ( info , pad ) ; Collection < String > features = new ArrayList < String > ( ) ; List < Clique > cliques = featureFactory . getCliques ( ) ; for ( Clique c : cliques ) { Collection < String > feats = featureFactory . getCliqueFeatures ( pInfo , loc , c ) ; feats = addOtherClasses ( feats , pInfo , loc , c ) ; features . addAll ( feats ) ; } printFeatures ( pInfo . get ( loc ) , features ) ; CoreLabel c = info . get ( loc ) ; return new BasicDatum < String , String > ( features , c . get ( AnswerAnnotation . class ) ) ; }
Make an individual Datum out of the data list info focused at position loc .