Questions tagged [analyzer]

Questions related to the pset6 exercise: Sentiments. In particular, issues with implementing analyzer.py

5 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0
votes
1answer
41 views

Pset6 analyzer getting positive words from text and turning them into a string

I'm trying to get the analyzer function to work and I'm really just not fully understanding what to do and how to do it. I think I need to take each line of the text files and have put into a string. ...
0
votes
1answer
42 views

analyzer.py cant store string in my dictionary

For some reason when i run the following python code I get the following error: Traceback (most recent call last): File "/home/ubuntu/workspace/pset6/sentiments/analyzer.py", line 20, in init ...
0
votes
2answers
220 views

analyzer.py always returns :|

My code: import nltk negs = [] poss = [] class Analyzer(): """Implements sentiment analysis.""" def __init__(self, positives, negatives): """Initialize Analyzer.""" self....
0
votes
1answer
602 views

Lost trying to figure out sentiments PSET 6 2017

I need some help with pset6 I'm basically lost trying to figure out what I should be doing. I have my analyzer code which doesn't return any errors when I run it but at the same time returns no output ...
0
votes
1answer
396 views

How to check if certain token is in the file in analyzer.py

I have implementing (in my understanding) analyzer.py. I am confused after dividing a tweet into tokens how to check them if they are available in "negative" or "positive", my question is "Is there a ...