Skip to content

Commit 1e5bab7

Browse files
authored
AC: fix encoding tsv files in text classification tasks (openvinotoolkit#1651)
1 parent 0fca94c commit 1e5bab7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/accuracy_checker/accuracy_checker/annotation_converters/text_classification.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def configure(self):
6969

7070
def read_tsv(self):
7171
lines = []
72-
with self.annotation_file.open('r') as ann_file:
72+
with open(str(self.annotation_file), 'r', encoding="utf-8-sig") as ann_file:
7373
reader = csv.reader(ann_file, delimiter="\t", quotechar=None)
7474
for idx, line in enumerate(reader):
7575
if idx == 0:

0 commit comments

Comments
 (0)