Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: I think we have to open file as byte explicitly. [Specify when opening a file as binary](https://docs.python.org/3.3/howto/pyporting.html#specify-when-opening-a-file-as-binary) Always read as byte and decode it is good practice. I encountered encoding problem when using Japanese dataset, then this fix solve the problem. Closes facebookresearch#70 Reviewed By: piotr-bojanowski Differential Revision: D3900225 Pulled By: EdouardGrave fbshipit-source-id: e0b8b2b545f89ff75612f321ed3ba808bdea031e
- Loading branch information