Commit a1b6dbe9 authored by Tags's avatar Tags

Add Abs_path for large.txt

parent 56108c36
......@@ -27,7 +27,8 @@ class Classifier:
return
# load external dictionary
file_name_dictionary = os.path.abspath('large.txt')
directory = os.path.dirname(os.path.abspath(__file__))
file_name_dictionary = directory + '/large.txt'
file_dict = open(file_name_dictionary, "r")
self.correct_words = set()
for word in file_dict:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment