Reading Text file using Sparse Matrix Format

I have some data inside a text file encoded in the sparse matrix format, meaning that only the indices of non-zero entries are recorded. The first training entry is the following:


0 96 183 367 379 387 1041 1117 1176 1327 1546 1862 2068 2357 2369 2389 2904 3171 3172 3221 3269 3341 3596 3794 3832 3888 3892 4093 4128 4143 4265 4319 4436 4782 5002 5060 ...

The first value is the class label (0).

The remaining entries are the indices of all the non-zero values (1).

Is there an existing function or library to read this into Julia? I did see some from R but they had slightly different use cases.

Thanks in advance : )