calhoun.analysis.crf.io
Class AllIntergenicHiddenStateReader
java.lang.Object
calhoun.analysis.crf.io.AllIntergenicHiddenStateReader
- All Implemented Interfaces:
- TrainingSequenceIO, java.io.Serializable
public class AllIntergenicHiddenStateReader
- extends java.lang.Object
- implements TrainingSequenceIO
- See Also:
- Serialized Form
|
Method Summary |
void |
readTrainingSequences(java.lang.Object location,
java.util.List<TrainingSequence<java.util.Map<java.lang.String,java.lang.Object>>> seqs)
reads training sequences from the specified location. |
void |
writeTrainingSequences(java.lang.Object location,
java.util.Iterator<int[]> data)
writes training sequences to the specified location. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AllIntergenicHiddenStateReader
public AllIntergenicHiddenStateReader()
readTrainingSequences
public void readTrainingSequences(java.lang.Object location,
java.util.List<TrainingSequence<java.util.Map<java.lang.String,java.lang.Object>>> seqs)
throws java.io.IOException
- Description copied from interface:
TrainingSequenceIO
- reads training sequences from the specified location.
- Specified by:
readTrainingSequences in interface TrainingSequenceIO
- Parameters:
location - location of the training sequences. Meaning is implementation dependent.seqs - a list of the input sequences to which hidden sequences should be added. Each hidden sequence is an array of integers containing hidden state indices.
- Throws:
java.io.IOException
writeTrainingSequences
public void writeTrainingSequences(java.lang.Object location,
java.util.Iterator<int[]> data)
throws java.io.IOException
- Description copied from interface:
TrainingSequenceIO
- writes training sequences to the specified location.
- Specified by:
writeTrainingSequences in interface TrainingSequenceIO
- Parameters:
location - location of the training sequences. Meaning is implementation dependent.data - iterator over the hidden states to write.
- Throws:
java.io.IOException