I have the following problem: I installed a Python package from GitHub (textstat) in which there is a txt-file. The content of the txt-file (actually just a long list of easy english words) is used in some functions defined within the package. Now, I added some more words to the list in the txt-file by opening the file with a text editor and saving it, but somehow when I execute my python code (in Jupyter Notebook) it seems like the old list is used, not the updated one. How do I fix this?
EDIT: some more information, because reload() did not solve my problem. Also restarting the kernel or even my entire computer did not work out...
In textstat.py the txt-file "easy_words.txt" (in the same directory as textstat.py) is saved in the variable "easy_word_set" in the following way:
easy_word_set = set([ln.strip() for ln in pkg_resources.resource_stream('textstat', 'easy_words.txt')])
Now, in my Jupyter Notebook I import textstat as usual:
import textstat.textstat as ts
Somehow
ts.easy_word_set
gives me the updated list. But when I use e.g.
ts.textstat.gunning_fog(word)
the old list is used.