RUCAIBox/TextBox

Lack of portability on Windows

huyiwen opened this issue · 1 comments

In textbox/data/utils.py

  • Line 16 from posix import listdir should be from os import listdir, which resulted a lack of portability on Windows.
  • Line 259 with open(dataset_path, "r") as fin: should specify encoding to utf-8.

posix: Do not import this module directly.

Thanks for your report. However, considering the act