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
2
votes
1 answer

Textblob OCR throws 404 error when trying to translate to another language

I have a 5 line simple program to translate a language to English via OCR Textblob. But for some reason, it throws 404 error!!! from textblob import TextBlob text = u"おはようございます。" tb = TextBlob(text) translated =…
BZ2021
  • 55
  • 5
2
votes
1 answer

Return a TextBlob positive, negative or netutral classification in a new column in dataframe

I'm trying to insert a new dataframe column with only the 'positive' or 'negative' string according to TextBlob classification ex: for the 1st line of my df the result is (pos, 0.75, 0.2499999999999997) and I would like to have 'positive' in a new…
P40l0
  • 33
  • 3
2
votes
0 answers

python translating from arabic to english using TextBlob

im trying to translate some sentences by using textblob from arabic to english,it was working when suddenly i started getting this errors from textblob import TextBlob en_blob = TextBlob(u'انا سعيد') print(en_blob.translate(to='en')) getting…
2
votes
1 answer

issue with using TextBlob translate function for Pandas Dataframe

I'm trying to convert non-English languages to English using TextBlob translate function. My data set is based on Pandas data frame. I understood that it worked in non-Pandas data frame context. For example, what=TextBlob("El apartamento de Evan…
Todd
  • 399
  • 3
  • 18
2
votes
1 answer

Textblob and sentiment analysis: how to refine a dictionary?

Many people use text blob for sentiment analysis on text. I am sure that I am missing something in understanding the approach and how to use it, but there is something that does not work at all with the results I am getting from my analysis. This is…
user12809368
2
votes
1 answer

Tweets analysis: Get unique positive, unique negative and unique neutral words : Optimised solution:Natural Language processing:

I have a dataframe train, with a column tweet_content. There is a column sentiment which tells the overall sentiment of tweet. Now there are lot of words which are common in tweets of neutral, positive and negative sentiments. I want to find the…
noob
  • 3,601
  • 6
  • 27
  • 73
2
votes
1 answer

JSONDecodeError: Expecting value: line 1 column 1 (char 0) while translating text

I am getting the following error while translating a column from spanish to English: JSONDecodeError: Expecting value: line 1 column 1 (char 0) My data frame looks like the following: case_id es …
2
votes
1 answer

NLP sentiment analysis: 'list' object has no attribute 'sentiment'

For a current project, I am planning to perform a sentiment analysis for a number of word combinations with TextBlob. When running the sentiment analysis line polarity = common_words.sentiment.polarity and calling the results with print(i, word,…
Malte Susen
  • 767
  • 3
  • 13
  • 36
2
votes
0 answers

Twitter-Sentiment-Analysis in python 3 using tweepy and Textblob

When I execute this code it terminates without any error but there is no any output. I have attached the right twitter authentication credentials.what would be the issue Twitter-Sentiment-Analysis in python using tweepy and Textblob from textblob…
Hashan Malawana
  • 333
  • 1
  • 2
  • 10
2
votes
1 answer

How do I extract noun/ verbal phrases for portuguese?

I've found various tools to extract verbal and noun phrases in English, including in some questions here in stackoverflow. Yet, the techniques I've found only seem to work for English texts. I've tried spacy and textblob but they won't return…
Camelo
  • 23
  • 4
2
votes
1 answer

Spacy/Textacy not reading file contents from .txt (text) file

I am trying to read the contents (blog) from a text file using Python (SpaCy/Textacy/Textblob) but it has been in vain, so far. Following is the code that I have recently tried: import content as content import pattern as pattern import…
2
votes
2 answers

Setting n-grams for sentiment analysis with Python and TextBlob

I want to do sentiment analysis of some sentences with Python and TextBlob lib. I know how to use that, but Is there any way to set n-grams to that? Basically, I do not want to analyze word by word, but I want to analyze 2 words, 3 words, because…
taga
  • 3,537
  • 13
  • 53
  • 119
2
votes
1 answer

Trouble installing TextBlob with pip

I'm having a bit of difficulty when installing TextBlob in the command line on Windows 10 using pip. According to their docs, you need to run two commands in succession: pip install -U textblob python -m textblob.download_corpora Upon trying the…
2
votes
0 answers

Is it possible to change the Wordnet dictionary in TextBlob?

I need to use the library TextBlob (PYTHON) for processing textual data, but by default it uses the WordNet dictionary, and I need to exchange it for a dictionary adapted to the Portuguese in the financial market domain for my research. It's…
2
votes
1 answer

Issues with streaming tweets using tweepy and Sentiment analysis

I'm a beginner Python programmer I am finding it hard to figure out a simple Tweepy Streaming api. Basically I am trying to do the below. Stream tweets in Portuguese language. Show the sentiment of each tweets. I am unable to stream language…