Read Sparse


Synopsis

Reads an example file in sparse format.


Description

Reads an example file in sparse format, i.e. lines have the form

label index:value index:value index:value...

Index may be an integer (starting with 1) for the regular attributes or one of the prefixes specified by the parameter list prefix_map. Four possible formats are supported

format_xy
The label is the last token in each line
format_yx
The label is the first token in each line
format_prefix
The label is prefixed by 'l:'
format_separate_file
The label is read from a separate file specified by label_file
no_label
The example set is unlabeled.

A detailed introduction to the sparse file format is given in section First steps/File formats/Data files.


Input


Output


Parameters


ExampleProcess

caption