ptwobrussell / Mining-the-Social-Web

The official online compendium for Mining the Social Web (O'Reilly, 2011)
http://bit.ly/135dHfs
Other
1.21k stars 491 forks source link

IOError: [Errno 22] invalid mode ('r') or filename: url #32

Closed 4949Rodrigo closed 11 years ago

4949Rodrigo commented 11 years ago

This error appears when I try to pass a url to apply the TF-IDF with the code:

plus__tf_idf_nltk

and

buzz__tf_idf_nltk

I'm sorry my english...

ptwobrussell commented 11 years ago

Can you provide a full console dump of your exact command and the full stack trace?

On Sep 26, 2012, at 10:21 AM, 4949Rodrigo notifications@github.com wrote:

This error appears when I try to pass a url to apply the TF-IDF with the code:

plus__tf_idf_nltk

and

buzz__tf_idf_nltk

I'm sorry my english...

— Reply to this email directly or view it on GitHub.

4949Rodrigo commented 11 years ago

Also when a URL json step in the code itself appears a corresponding error in the code:

if activity ['trends'] ['name']! = ""]

4949Rodrigo commented 11 years ago

TypeError: string indices must be integers, not str

ptwobrussell commented 11 years ago

If you can provide a full console dump of your exact command and the stack trace as copied/pasted from your terminal, I might be able to further help you

ptwobrussell commented 11 years ago

Closing this issue since not enough info was provided to help you resolve the problem. Feel free to re-open if issues persist or you'd like to revisit. Thanks.