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

Replacing adjectives from one book into another using textblob

I am trying to create a program that will replace the adjectives from one text file, which I am using Pride and Prejudice (pride.txt) and replace them with the adjectives from another text file, which I am using Moby Dick (moby.txt). I am very new…
MaryS
  • 1
  • 1
-1
votes
1 answer

How to word_tokenize pandas dataframe

My pandas dataframe (df.tweet) consits of one column with german tweets, I already did the data cleaning and dropped the columns I don´t need. Now I want to word_tokenize the tweets in the pandas dataframe. With TextBlob it only works for strings…
-1
votes
1 answer

How to do sentiment analysis using the textblob in python(Pandas)

I have a data frame called Comments_Final which has one column - "Comments" this column has different reviews like for example 1.Fit good fast shipping 2.Product as described and functioned perfectly. 3.this product doesn't fit my Remington rm1415…
-1
votes
1 answer

Applying TextBlob sentimental analysis to Twitter Stream

I am currently streaming tweets and want to apply sentimental analysis for each tweet, mapping both the tweet and the value. I keep getting an error: "NoneType' object has no attribute 'limit'". Not sure what I am doing wrong. from textblob import…
Cris Pineda
  • 31
  • 11
-1
votes
1 answer

Text Blob Naive Bayes classification

I am using textblob lib for classification using naive bayes , I have a train set and wants to check if I pass a word it should check in the train and classify accordingly and if the word is not present in the train it should not suggest any…
Dexter1611
  • 492
  • 1
  • 4
  • 15
-1
votes
1 answer

'u' is prepended to all text in TextBlob

I am using Textblob for processing textual data. My code is: from textblob import TextBlob wiki = TextBlob("Python is a high-level, general-purpose programming language.") wiki.tags I am getting output as: [(u'Python', u'NNP'), (u'is', u'VBZ'),…
overlord
  • 1,059
  • 1
  • 14
  • 21
-2
votes
1 answer

Sentiment analysis of a certain paragraph from a website

I have url of multiple websites in an xlsx file. I ran a loop on the xlsx file and passed the urls as an argument to the following sentiment analysis code. Now the code is providing me with the analysis of the whole website (the websites only…
-2
votes
2 answers

How to get the score of sentiments?

I am using TextBlob i am training my classifier on a training set after that i am successfully able to get the classified out put Bit how can i get the score of a particular text in terms of positive or negativity should i put scores of sentiments…
Mohd Maaz
  • 267
  • 5
  • 20
-2
votes
1 answer

print a particular string based on the count of parenthesis occurs

my_stng = " Einstein found out (apple) (fruit) which is (red)(green) in colour" Requirement: in the above string, count the number of times the parenthesis occurs and print the whole string that many times. if the count of parenthesis is 3, i…
Prabu
  • 11
  • 4
-2
votes
1 answer

Build a text classifier

I need to build a classifier which will classify any tweet string into a specific category. I've around 15 or so categories. I've the training dataset with me. Any ideas how should I go ahead with this? Using Python or Java for this. I've been…
90abyss
  • 7,037
  • 19
  • 63
  • 94
-4
votes
1 answer

key error 0 sentiment analysis

I am trying to run sentiment analysis on a selection of a data set, but every time I do I get this error: KeyError: 0 For reference, this is the code I am working with: OC = df[df["text"].str.contains("Obamacare")] from textblob import…
kbenne
  • 1
-5
votes
1 answer

Does Naive Bayes algorithm classify words or phrases?

I want to use the Naive Bayes algorithm available on Text blob package in python. Does it classify "I love terrorism and I hate peace" and "I love peace and hate terrorism" the same way?
1 2 3
22
23