diff --git a/QA_data/QA_test.py b/QA_data/QA_test.py index 504c2ca..6ba7dcc 100644 --- a/QA_data/QA_test.py +++ b/QA_data/QA_test.py @@ -9,7 +9,7 @@ cursor = conn.cursor() stop_words = [] -with open('./QA_data/stop_words.txt') as f: +with open('./QA_data/stop_words.txt', encoding='gbk') as f: for line in f.readlines(): stop_words.append(line.strip('\n'))