|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcalhoun.analysis.crf.io.CompositeInput.LegacyInputHandler
public static class CompositeInput.LegacyInputHandler
legacy InputHandler that mirrors the original XML config file behavior.
There is a small amount of support in Conrad to set this up to be truly backwards compatible.
| Constructor Summary | |
|---|---|
CompositeInput.LegacyInputHandler(java.lang.Object inputComponent)
special constructor used by Conrad to pass the old style input config to the legacy input handler. |
|
| Method Summary | |
|---|---|
java.util.Iterator<? extends InputSequence<?>> |
readInputData(java.lang.String inputLocation)
returns the input data read from the specified location. |
java.util.List<? extends TrainingSequence<?>> |
readTrainingData(java.lang.String location)
|
java.util.List<? extends TrainingSequence<?>> |
readTrainingData(java.lang.String inputLocation,
boolean predict)
returns the training data read from the specified location. |
void |
writeInputData(java.lang.String location,
java.util.Iterator data)
writes input data to the specified location. |
void |
writeTrainingData(java.lang.String location,
java.util.List data)
writes training data to the specified location. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CompositeInput.LegacyInputHandler(java.lang.Object inputComponent)
Conrad to pass the old style input config to the legacy input handler.
inputComponent - the originally configured inputFormat bean.| Method Detail |
|---|
public java.util.Iterator<? extends InputSequence<?>> readInputData(java.lang.String inputLocation)
throws java.io.IOException
InputHandlerIterator
because the inference algorithms can predict on the sequences one at a time. The interpretation of
the location string is dependent on the particular InputHandler implementation used.
readInputData in interface InputHandlerinputLocation - string location of the data. Meaning is implementation dependent.
java.io.IOException - if there is a problem reading the data
public java.util.List<? extends TrainingSequence<?>> readTrainingData(java.lang.String location)
throws java.io.IOException
readTrainingData in interface InputHandlerjava.io.IOException
public java.util.List<? extends TrainingSequence<?>> readTrainingData(java.lang.String inputLocation,
boolean predict)
throws java.io.IOException
InputHandlerIterator so algorithms are not forced to hold
all of the training data at once (although most will). The interpretation of
the location string is dependent on the particular InputHandler implementation used.
readTrainingData in interface InputHandlerinputLocation - string location of the data. Meaning is implementation dependent.
java.io.IOException - if there is a problem reading the data
public void writeTrainingData(java.lang.String location,
java.util.List data)
throws java.io.IOException
InputHandlerInputHandler implementation used.
writeTrainingData in interface InputHandlerlocation - string location of the data. Meaning is implementation dependent.data - a list of training sequences to write out.
java.io.IOException - if there is a problem reading the data
public void writeInputData(java.lang.String location,
java.util.Iterator data)
throws java.io.IOException
InputHandlerInputHandler implementation used.
writeInputData in interface InputHandlerlocation - string location of the data. Meaning is implementation dependent.data - an iterator over input sequences
java.io.IOException - if there is a problem reading the data
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||