Skip to main content

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
1 answer
46 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. ...
Joel Banks's user avatar
0 votes
1 answer
49 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 ...
kevin's user avatar
  • 3
0 votes
2 answers
221 views

analyzer.py always returns :|

My code: import nltk negs = [] poss = [] class Analyzer(): """Implements sentiment analysis.""" def __init__(self, positives, negatives): """Initialize Analyzer.""" self....
Ianardo's user avatar
  • 63
0 votes
1 answer
605 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 ...
Dave G's user avatar
  • 15
0 votes
1 answer
401 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 ...
Ahmed Raza's user avatar