Datasets:

License:

Convert name keyword argument to an md5 hash

#9

File name was too long, resulting in an OS error when a path is created. The keyword argument name was shortened by passing it to an md5 hash function in the hashlib library. Note that according to the hashlib documentation, the md5 algorithm "may be missing or blocked if you are using a rare “FIPS compliant” build of Python."

Note that passing ['eng'] as a language to load_dataset results in 30 translations being loaded; I assumed this is because there is more than one english translation. However, if this should not happen, then maybe more than changing name to an md5 hash is necessary.

ajland changed pull request status to closed

Sign up or log in to comment