    001    package calhoun.analysis.crf.io;
    002
    003    import java.io.IOException;
    004    import java.util.Iterator;
    005    import java.util.List;
    006    import java.util.Map;
    007    import java.util.Arrays;
    008
    009    import org.apache.commons.logging.Log;
    010    import org.apache.commons.logging.LogFactory;
    011
    012    public class AllIntergenicHiddenStateReader implements TrainingSequenceIO {
    013            private static final long serialVersionUID = 4413724139445660884L;
    014            private static final Log log = LogFactory.getLog(GTFInputInterval13.class);
    015
    016            public void readTrainingSequences(Object location, List<TrainingSequence<Map<String, Object>>> seqs) throws IOException {
    017                    for(TrainingSequence<Map<String, Object>> seq : seqs) {
    018                            int[] states = new int[seq.length()];
    019                            Arrays.fill(states, 0);
    020                            seq.setY(states);
    021                    }
    022
    023            }
    024            public void writeTrainingSequences(Object location, Iterator<int[]> data) throws IOException {
    025
    026            }
    027    }