Skip to content

Tag: nltk

How do I read the following lines of code?

Apologies for the basic question as I am quite new to the topic. Can you please break the code above in the format given below: Answer I think it is better for you to look up the following subjects: List comprehensions – link zip() function – link This will give you a better understanding of what …

issue

it might be a basic question but I am stuck here not really sure what went wrong. df[‘text’] contains the text data that I want to work on and it returns [<nltk.tokenize.casual.TweetTokenizer object at 0x7f80216950a0>, <nltk.tokenize.casual.TweetTokenizer object at 0x7f8022278670>, &lt…

How to parse guess_language to read 30000 tweets?

I am using guess_language to detect the language of the tweets for a school project. I used pandas to read the .csv file. I have around 30000 rows. However, my problem is that the guess language can only read one tweet at a time. guess_language(“Top story: ‘Massive Mental Health Crisis’ “) &#8…