public class OcrReader extends StandardReader implements Reader
Constructor and Description |
---|
OcrReader() |
Modifier and Type | Method and Description |
---|---|
InstancesContainer |
readData(java.lang.String path,
java.lang.String dataSpliter,
java.lang.String valueSpliter)
Reads the data for the OCR task, this reader parse the data that given in the same format as in: http://ai.stanford.edu/~btaskar/ocr/
Each example will contain a matrix where each row is an image of some character and the label will be the word
|
InstancesContainer |
readDataMultiClass(java.lang.String path,
java.lang.String dataSpliter,
java.lang.String valueSpliter)
Reads the data for the OCR task, this reader parse the data that given in the same format as in: http://ai.stanford.edu/~btaskar/ocr/
Each example will contain a vector (image) of some character and the label will single character
This reader returns a data set for multi-class classification
|
readFile, readPathes
public InstancesContainer readData(java.lang.String path, java.lang.String dataSpliter, java.lang.String valueSpliter)
readData
in interface Reader
readData
in class StandardReader
path
- the path to the datadataSpliter
- the splitter between the data valuesvalueSpliter
- the separator between the index of the feature to the feature valuepublic InstancesContainer readDataMultiClass(java.lang.String path, java.lang.String dataSpliter, java.lang.String valueSpliter)
path
- the path to the datadataSpliter
- the splitter between the data valuesvalueSpliter
- the separator between the index of the feature to the feature value