|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcalhoun.analysis.crf.io.OutputHandlerComposite
public class OutputHandlerComposite
an output handler that allows multiple output handlers to be configured. Each result is handed to each output handler in the list.
| Constructor Summary | |
|---|---|
OutputHandlerComposite()
|
|
| Method Summary | |
|---|---|
java.util.List<OutputHandler> |
getHandlers()
retursn the configured list of output handler. |
void |
outputComplete()
indicates the writing of output is complete. |
void |
setHandlers(java.util.List<OutputHandler> handlers)
sets the list of output handlers |
void |
setOutputLocation(java.lang.String location)
sets the output location to write to. |
void |
writeOutput(InputSequence<?> sequence,
int[] hiddenStates)
Writes out a set of predicted hidden states. |
void |
writeTestOutput(InputSequence<?> sequence,
int[] truePath,
int[] hiddenStates)
Writes out a set of hidden states compared with a known true path. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OutputHandlerComposite()
| Method Detail |
|---|
public void setOutputLocation(java.lang.String location)
OutputHandler
setOutputLocation in interface OutputHandlerlocation - the location to write the data to. The meaning is implementation dependent.
public void writeOutput(InputSequence<?> sequence,
int[] hiddenStates)
throws java.io.IOException
OutputHandlerOutputHandler.setOutputLocation(java.lang.String)
writeOutput in interface OutputHandlersequence - the input sequence on which predictions were madehiddenStates - an array of state indices for the predicted hidden states.
java.io.IOException
public void writeTestOutput(InputSequence<?> sequence,
int[] truePath,
int[] hiddenStates)
throws java.io.IOException
OutputHandlerOutputHandler.setOutputLocation(java.lang.String)
writeTestOutput in interface OutputHandlersequence - the input sequence on which predictions were madetruePath - an array of hidden states representing the true path.hiddenStates - an array of state indices for the predicted hidden states.
java.io.IOException
public void outputComplete()
throws java.io.IOException
OutputHandler
outputComplete in interface OutputHandlerjava.io.IOExceptionpublic java.util.List<OutputHandler> getHandlers()
public void setHandlers(java.util.List<OutputHandler> handlers)
handlers - a list of output handlers. The output handlers will be called in order for each prediction or test result.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||