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= []