mlpy.auxiliary.io.txt2pickle

mlpy.auxiliary.io.txt2pickle(filename, new_filename=None, func=None)[source]

Converts a text file into a pickle encoded file.

Parameters:

filename : str

The name of the file to encode.

new_filename : str

New file name to which the encoded data is saved to.

func : callable

A data encoding helper function.

Returns:

str :

The name of the file to which the encoded data was saved to.