Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

French language support for TextBlob.

Project Description

French language support for TextBlob.


  • Part-of-speech tagging (PatternTagger)
  • Sentiment analysis (PatternAnalyzer)
  • Supports Python 2 and 3


If you have pip installed (you should), run

$ pip install -U textblob
$ pip install -U textblob-fr


>>> from textblob import TextBlob
>>> from textblob_fr import PatternTagger, PatternAnalyzer
>>> text = u"Quelle belle matinée"
>>> blob = TextBlob(text, pos_tagger=PatternTagger(), analyzer=PatternAnalyzer())
>>> blob.tags
[(u'Quelle', u'DT'), (u'belle', u'JJ'), (u'matin\xe9e', u'NN')]
>>> blob.sentiment
(0.8, 0.8)

Alternatively, you can use the Blobber class to avoid having to repeatedly pass the models into the TextBlob constructor.

>>> from textblob import Blobber
>>> from textblob_fr import PatternTagger, PatternAnalyzer
>>> tb = Blobber(pos_tagger=PatternTagger(), analyzer=PatternAnalyzer())
>>> blob1 = tb(u"Quelle belle matinée")
>>> blob1.sentiment
(0.8, 0.8)
>>> blob2 = tb(u"C'est une voiture terribles.")
>>> blob2.sentiment
(-0.7, 0.6)
>>> blob1.analyzer is blob2.analyzer


  • Python >= 2.6 or >= 3.3


  • Tokenization
  • Parsing
  • NLTK tagging?


MIT licensed. See the bundled LICENSE file for more details.


0.2.0 (10/27/2013)

  • Compatibility with TextBlob>=0.8.0.

0.1.0 (09/25/2013)

  • First release
  • Basically a thin, Py3-compatible wrapper around Hooks to pattern’s tagger and sentiment analyzer.

0.0.1 (09/22/2013)

  • Experimental release.

Release History

This version
History Node


History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(561.2 kB) Copy SHA256 Hash SHA256
Wheel 2.7 Oct 28, 2013
(557.4 kB) Copy SHA256 Hash SHA256
Source None Oct 28, 2013

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting