From a6f897bb0400722d2214c8a8c4be5e8089d6d1a3 Mon Sep 17 00:00:00 2001 From: Xin Xu Date: Wed, 15 Dec 2021 18:31:35 +0800 Subject: [PATCH] Update dataset.py --- src/deepke/name_entity_re/standard/tools/dataset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/deepke/name_entity_re/standard/tools/dataset.py b/src/deepke/name_entity_re/standard/tools/dataset.py index 69af049..7c73089 100644 --- a/src/deepke/name_entity_re/standard/tools/dataset.py +++ b/src/deepke/name_entity_re/standard/tools/dataset.py @@ -30,7 +30,7 @@ def readfile(filename): ''' read file ''' - f = open(filename) + f = open(filename, encoding='utf-8') data = [] sentence = [] label= []