Questions tagged [nltk]
The nltk tag has no usage guidance.
5 questions
0
votes
0
answers
19
views
check50 error with CS50AI pset6 parser task
I got this error below. when I try to do check50 for pset6 Parser task.
It looks, that ntlk library needs an update (see the full error log in the bottom), I have updated it in my CS50.dev to run ...
0
votes
0
answers
144
views
:( np_chunk finds noun phrases that don't contain other noun phrases
check50 keep showing that there is a problem even though when I checked it with all 10 sentences it work. It expected the outcome: {'holmes', 'the home'} but my output shows: {'the armchair in the ...
0
votes
0
answers
187
views
CS50AI - Parser :( np_chunk finds noun phrases that don't contain other noun phrases
check50 keeps showing that there's a problem with my code ":( np_chunk finds noun phrases that don't contain other noun phrases", but I can't see what I am doing wrong. Please help me check ...
1
vote
1
answer
180
views
Confused by NLTK
I'm a little unsure of what's going on with the syntax when using the NLTK to tokenize strings.
In the tips for the pset this code is shown initially:
nltk.tokenize.casual.TweetTokenizer
Then they ...
0
votes
1
answer
79
views
Smile/Analyzer always return 0
I've been on this for a while and can't figure out the mistakes. Please correct me if i am mistaken. On running the code, the returned value is always 0.
(2) When I use the 'startwith' function i'm ...