textblob-fr
French language support for TextBlob.
Features
Part-of-speech tagging (PatternTagger)
Sentiment analysis (PatternAnalyzer)
Supports Python 2 and 3
Installing/Upgrading
If you have pip installed (you should), run
$ pip install -U textblob $ pip install -U textblob-fr
Usage
>>> 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
True
Requirements
Python >= 2.6 or >= 3.3
TODO
Tokenization
Parsing
NLTK tagging?
License
MIT licensed. See the bundled LICENSE file for more details.
Changelog
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 pattern.fr. Hooks to pattern’s tagger and sentiment analyzer.
0.0.1 (09/22/2013)
Experimental release.
Metadata
Release files for textblob-fr 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| textblob-fr-0.2.0.tar.gz | 557.4 kB | Without provenance | Details for textblob-fr-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| textblob_fr-0.2.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for textblob_fr-0.2.0-py2.py3-none-any.whl |
Total release size: 1.1 MB
Release files / textblob-fr-0.2.0.tar.gz
| Download URL | textblob-fr-0.2.0.tar.gz |
|---|---|
| Size | 557.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1edc942d018ae7cc121e59ec6bda7c33ece92943f81f9c9acc57a23a67897c33
|
|
BLAKE2b-256 checksum How to use checksums |
b4ffb972113f79e50778b97b82a9624a97fc5b41c5b3ed6dcb4486a7d6ed2697
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / textblob_fr-0.2.0-py2.py3-none-any.whl
| Download URL | textblob_fr-0.2.0-py2.py3-none-any.whl |
|---|---|
| Size | 561.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
34a24bac930c12bd53d81df4a663143b13af884d836d8e061e3c77fdf3cd4461
|
|
BLAKE2b-256 checksum How to use checksums |
99531d532ed522e561bc75e78e5c1920aba52f574847339462780cd060f2e607
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for textblob-fr 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.