ahmaurya / topics_over_time

Topics over Time implementation
115 stars 46 forks source link

about error #5

Closed Naplues closed 4 years ago

Naplues commented 4 years ago

hello,i got a problem like that Traceback (most recent call last): File "main_pnas.py", line 44, in <module> main() File "main_pnas.py", line 33, in main documents, timestamps, dictionary = tot.GetPnasCorpusAndDictionary(documents_path, timestamps_path, stopwords_path) File "/home/mere/topics_over_time/src/tot.py", line 43, in GetPnasCorpusAndDictionary stopwords.update(Set(line.lower().strip().split())) NameError: name 'Set' is not defined

ahmaurya commented 4 years ago

This might be because it is run in a particular version of Python which refers to it as set rather than Set. You could try renaming it to set().