Skip to content

Commit

Permalink
Update QA_test.py
Browse files Browse the repository at this point in the history
specify encoding while reading stop-words file
  • Loading branch information
leopku authored May 12, 2019
1 parent 3b0b86a commit e3cadbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion QA_data/QA_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'))

Expand Down

0 comments on commit e3cadbc

Please sign in to comment.