I just started working on the sentiments, at the moment I'm loading the positive words into a list and printing them out at a test. I'm having trouble with the for loops for getting each word into the list, my code is: `
def __init__(self, positives, negatives):
"""Initialize Analyzer."""
poswords = []
i = 0
file = open("positive-words.txt","w")
for words in positive-words.txt:
poswords = poswords.append(positive-words.txt[i])
file.close()
print(poswords)
# TODO`
I probably did a bit of this wrong, but any help is appreciated