Skip to content

Commit

Permalink
fix the bug of winodws load bug. (PaddlePaddle#1062)
Browse files Browse the repository at this point in the history
  • Loading branch information
wawltor authored Sep 23, 2021
1 parent 499cbe4 commit bca4e22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paddlenlp/taskflow/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ def root(self):
return self._root

def __load_type(self, file_path: str):
with open(file_path, "rt", newline="") as csvfile:
with open(file_path, "rt", newline="", encoding="utf8") as csvfile:
file_handler = csv.DictReader(csvfile, delimiter="\t")
for row in file_handler:
if row["type-1"] not in self:
Expand Down

0 comments on commit bca4e22

Please sign in to comment.