TextBlob: Simple, Pythonic Text Processing

0.20.0 · active · verified Fri Apr 10

TextBlob is a Python library designed for processing textual data, providing a simplified API for common Natural Language Processing (NLP) tasks. It encompasses functionalities like sentiment analysis, part-of-speech tagging, noun phrase extraction, and more, building on top of NLTK and pattern libraries. The current version is 0.20.0, with a release cadence that indicates active maintenance and updates, as seen with recent releases in late 2025 and early 2026.

Warnings

Install

Imports

Quickstart

This quickstart demonstrates basic sentiment analysis, part-of-speech tagging, and noun phrase extraction using TextBlob. It initializes a TextBlob object with a string and then accesses its `sentiment`, `tags`, and `noun_phrases` properties.

from textblob import TextBlob

text = "TextBlob is amazingly simple to use. What great fun!"
blob = TextBlob(text)

print(f"Original text: {text}")
print(f"Sentiment Polarity: {blob.sentiment.polarity}") # Range [-1.0, 1.0]
print(f"Sentiment Subjectivity: {blob.sentiment.subjectivity}") # Range [0.0, 1.0]
print(f"Part-of-speech tags: {blob.tags}")
print(f"Noun phrases: {blob.noun_phrases}")

# Example of a common warning: not downloading corpora leads to LookupError
# Run `python -m textblob.download_corpora` if you get a LookupError.

view raw JSON →