The function for adding elements to set in python is add()
not adds()
. Moreover in your last line of code you have called the load()
function but you have not passed the required parameters. i.e the file paths for negative and positive words.
Vikrant Pradhan
- 550
- 3
- 6