Skip to main content

Questions tagged []

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer

tokens in analyzer and tweets not working ? - sentiments - pset 6

i ve been reading post because the tokens is not working in the analyzer and i don t understand how come in all post i ve red about tweets there are no tokens at all (but zamyla said to use the tokens ...
Genevie's user avatar
  • 30
0 votes
1 answer

if !(line.startswith(';')):

Is there a way to use the ! symbol or another symbol with the line below? Though the following syntax is wrong, I have it here to illustrate what I am aiming for if !(line.startswith(';')): ...
Salamit's user avatar
  • 231
0 votes
1 answer

Analyzer Pset6 does not work

just started this and have quite a bit trouble getting used to python despite having read all the courseware. My code keeps returning a neutral face. What is wrong? Thanks. import nltk class ...
joshwong's user avatar
0 votes
1 answer

pset6: why is my version of the analyzer not working?

For, I think my code works for defining the first part: instantiation of the analyzer, but not for defining the second: analyze. Please see the failing part of my code below. Also, I have ...
Alex Chan's user avatar
  • 121
3 votes
1 answer

pset6 tweets, and

I've been stuck here for a while, any help would be appreciated, thanks I'm getting this error on the console while trying to run ./tweets @cs50: ~/workspace/pset6/sentiments/ $ ./tweets @cs50 ...
bobby_pin's user avatar
1 vote
1 answer

Help with please?

I've watched and rewatched the lecture and walkthroughs on pset6, and read the tokenizer documentation. Here's my code. Can someone help me figure out what I'm doing wrong? import nltk ...
Scott's user avatar
  • 147