Skip to content

Commit bca4e22

Browse files
authored
fix the bug of winodws load bug. (PaddlePaddle#1062)
1 parent 499cbe4 commit bca4e22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paddlenlp/taskflow/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ def root(self):
262262
return self._root
263263

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

0 commit comments

Comments
 (0)