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
6
votes
3 answers

After training my own classifier with nltk, how do I load it in textblob?

The built-in classifier in textblob is pretty dumb. It's trained on movie reviews, so I created a huge set of examples in my context (57,000 stories, categorized as positive or negative) and then trained it using nltk. I tried using textblob to…
Marc Maxmeister
  • 4,191
  • 4
  • 40
  • 54
6
votes
2 answers

How to correct spelling in a Pandas DataFrame

Using the TextBlob library it is possible to improve the spelling of strings by defining them as TextBlob objects first and then using the correct method. Example: from textblob import TextBlob data = TextBlob('Two raods diverrged in a yullow waod…
RDJ
  • 4,052
  • 9
  • 36
  • 54
6
votes
1 answer

Running TextBlob in Python3

I installed textblob using pip as given here. Now, when I try to import this in python3.4 in terminal then it says ImportError: No module named 'textblob' Whereas, in python2.7 it imports happily. I have tried reinstalling it. I have even…
TrigonaMinima
  • 1,828
  • 1
  • 23
  • 35
5
votes
2 answers

Get the positive and negative words from a Textblob based on its polarity in Python (Sentimental analysis)

I have a text blob in which i am classifying the text as positive if polarity is > 0, neutral if = 0, and negative if < 0. How can i get the words based on which it is classifying as positive, negative or neutral?
5
votes
2 answers

Textblob sentiment algorithm

Does anyone know how textblob sentiment is working? I know it is working based on Pattern but I could not find any article or document explain how pattern assigns polarity value to a sentence.
Sahar
  • 177
  • 2
  • 11
5
votes
0 answers

textblob on django + apache on aws gives MissingCorpusError

I have AWS linux running with apache and django. I have installed textbob extension and it works well through the python shell. However, when I use it in views.py it always gives me MissingCorpusError. I have downloaded the corpus already (python…
Rahul Ahuja
  • 705
  • 1
  • 9
  • 16
5
votes
5 answers

TextBlob installation in windows

I have followed the instruction in Trouble installing TextBlob for Python for TextBlob installation in the Windows 7. It got installed but when I go to Python Idle and type import TextBlob it says No module named TextBlob How to solve this…
Selva Perumal
  • 71
  • 2
  • 3
  • 6
4
votes
3 answers

"HTTPError: HTTP Error 404: Not Found" while using translation function in TextBlob

When I try to use translate function in TextBlob library in jupyter notebook, I get: HTTPError: HTTP Error 404: Not Found I have posted my code and screenshot of error message for reference here. This code worked well 5-6 days ago when I ran…
Manish
  • 130
  • 1
  • 12
4
votes
1 answer

Removing stopwords from a textblob

I'm processing a textblob and one of the steps is stopwords removal. Textblobs are immutable, so I'm turning one into a list to do the job: blob = tb(tekst) lista = [word for word in blob.words if word not in stopwords.words('english')] tekst = '…
Zygmunt
  • 41
  • 1
  • 2
4
votes
1 answer

Why is not TextBlob using / detecting the negation?

I am using TextBlob to perform a sentiment analysis task. I have noticed that TextBlob is able to detect the negation in some cases while in other cases not. Here are two simple examples >>> from textblob.sentiments import PatternAnalyzer >>>…
LetsPlayYahtzee
  • 7,161
  • 12
  • 41
  • 65
4
votes
0 answers

Is it possible to augment the existing TextBlob classifier?

I want to use the majority of the out-of-the-box classifier than TextBlob offers, but I also wanted to add my own small set of training data. This is because the text I am analyzing has some niche words I want to make sure make it into the training…
user2497586
4
votes
2 answers

Python: Error importing textblob lib

Using windows 10 I've install textblob using "py -m pip install textblob". I can import textblob, or from textblob import blob,word But i cant: from textblobl import Textblob. The error i get is: Traceback (most recent call last): File "", line 1,…
4
votes
4 answers

Python textblob Translation API Error

I have been using textblob in Python 2.7.10 on Windows for quite some time, and unexpectedly, it stopped working. Testing with two independent virtual machines as well as on OS X produces the same error. Testing a simple snippet from the docs: …
user145078
  • 41
  • 1
  • 4
4
votes
1 answer

TextClassification with TextBlob

I'm a complete newbie in Machine Learning, NLP, Data Analysis but I'm very motivated to understand it better. I'm reading couple of books on NLTK, scikit-learn etc. I discovered a python module "TextBlob" and found it to be super easy to get started…
4
votes
2 answers

missing corpus error in textblob using django

I am using Python 2.7, Django 1.8 and my server is Apache on Linux Ubuntu. I have a JSON file with 23000 tweets in it. I want to classify the tweets according to predefined categories. But when I run the code, it throws MissingCorpusError at / and…
user5315166
  • 51
  • 1
  • 4
1
2
3
22 23