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.
Also one more thing, you have to call the load function inside the init() function so for that you need to write load() function before the init() or you can simply load the sets inside the init() function without the use of a load() function