Questions tagged [textblob]

Simple, Pythonic, text processing--Sentiment analysis, part-of-speech tagging, noun phrase extraction, translation, and more

TextBlob is a Python (2 and 3) library for processing textual data. It provides a simple API for diving into common natural language processing (NLP) tasks such as part-of-speech tagging, noun phrase extraction, sentiment analysis, classification, translation, and more.

342 questions
4
votes
3 answers

How to save the result of classifier textblob NaiveBayesClassifier?

I am using TextBlob's NaiveBayesclassifier for text analysis according to the given themes that I have chosen. The data is huge(about 3000 entries). Though I was able to get a result, I'm not able to save it for future use without calling that…
4
votes
2 answers

Unable to get up and running with TextBlob

This morning I set out to install the TextBlob module found at https://textblob.readthedocs.org/en/latest/index.html Per the installation documentation I first ran: pip install -U textblob Now if I run that command I get the following: Requirement…
Peter Foti
  • 5,526
  • 6
  • 34
  • 47
3
votes
2 answers

How can I find the Word List or dictionary with Polarity Score of TextBlob?

I need the total list or dictionary with Polarity Score of TextBlob. I search many online sites but can not find the list. I know the way to get polarity of a sentence or word. How can I find that?
Shan
  • 45
  • 6
3
votes
3 answers

textblob error 'list' object has no attribute 'strip'

I'm using TextBlob to translate some text , it worked fine till I tested it today ... I'm using python 3 textblob Version: 0.15.3. Is there a new update or something like that ?
3
votes
1 answer

Why is converting words into singular from plural in a for loop taking so long (Python 3)?

This is my code to read text from a CSV file and convert all the words in a column of it into singular form from plural: import pandas as pd from textblob import TextBlob as tb data = pd.read_csv(r'path\to\data.csv') for i in range(len(data)): …
Kristada673
  • 3,512
  • 6
  • 39
  • 93
3
votes
1 answer

python -m textblob.download_corpora - CERTIFICATE_VERIFY_FAILED

I am trying to run some python code, using textblob. This is the following code: #!/Library/Frameworks/Python.framework/Versions/3.6/bin/python3 from textblob import TextBlob from vaderSentiment.vaderSentiment import…
beth
  • 425
  • 1
  • 8
  • 16
3
votes
1 answer

Error while installing TextBlob

I am trying to install TextBlob. As per the official doc, i did this. > pip install -U textblob > python -m textblob.download_corpora The pip command is doing its job. But the other command is giving following error. [nltk_data] Error loading…
Ankush Rathi
  • 622
  • 1
  • 6
  • 26
3
votes
1 answer

Error while installing textblob on ubuntu 14.04

I'm trying to install textblob on my system. By following the documentation, I had run the command pip3 install -U textblob But while running the command, I'm getting an error like this.
Satrajit Maitra
  • 103
  • 1
  • 1
  • 8
3
votes
1 answer

Python 3: How can I get news articles that contain a certain keyword

I'm trying to write a little web app that returns the sentiment of a news article involving a keyword. I used the TextBlob and Newspaper3K python 3 packages. I tried to make the url string for Newspaper3K the result of a search query on Google News…
Jack Pan
  • 1,261
  • 3
  • 11
  • 12
3
votes
0 answers

How NaiveBayesClassifier of TextBlob works?

I'm using NaiveBayesClassifier function of TextBlob to classify some phrases and it works fine at the moment. My problem is, I need explain how the function works with table test. How NaiveBayesClassifier of TextBlob works to classify one phrase and…
3
votes
0 answers

can we classify text using SVM classifier in python-TextBlob?

>>> train = [ ('I love this sandwich.', 'pos'), ('this is an amazing place!', 'pos'), ('I feel very good about these beers.', 'pos'), ('this is my best work.', 'pos'), ("what an awesome view", 'pos'), ('I do not like this…
Rajeev
  • 442
  • 1
  • 5
  • 18
3
votes
1 answer

Naive Bayes text classification using TextBlob: every instance predicted as negative when adding more sample size

I am classifying documents as positive and negative labels using Naive Bayes model. It seems working fine for small balanced dataset size around 72 documents. But when I add more negative labeled documents, the classifier is predicting everything as…
user2161903
  • 577
  • 1
  • 6
  • 22
3
votes
1 answer

UnicodeDecodeError in textblob tutorial

I'm trying to run through the TextBlob tutorial in Windows (using Git Bash shell) with Python 3.3. I've installed textblob and nltk as well as any dependencies. The Python code is: from text.blob import TextBlob wiki = TextBlob("Python is a…
sgoldber
  • 45
  • 4
2
votes
1 answer

Is it possible to do emojis sentiment analysis using textblob?

I am running sentiment analysis on WhatsApp chats using textblob and the result is working on just text but I am getting neutral results on emojis. Is there a way that textblob would see smiling emojis and return a positive result?
Egidius
  • 971
  • 1
  • 10
  • 22
2
votes
2 answers

textblob .detect_language() function not working

So I have been trying out coding and am currently finding some language detection packages and found out about textblob, but I am having some sort of proble. This is my code: # - *- coding: utf- 8 - *- from textblob import TextBlob blob =…
Daniel Bueno
  • 41
  • 1
  • 3
1 2
3
22 23