A fast and accurate part-of-speech tagger for TextBlob.
Project description
A fast and accurate part-of-speech tagger based on the Averaged Perceptron. For use with TextBlob.
Implementation by Matthew Honnibal, a.k.a. syllog1sm. Read more about it here.
Install
If you have pip installed (you should), run
$ pip install -U textblob textblob-aptagger
Usage
>>> from text.blob import TextBlob
>>> from textblob_aptagger import PerceptronTagger
>>> blob = TextBlob("Simple is better than complex.", pos_tagger=PerceptronTagger())
>>> blob.tags
[('Simple', u'NN'), ('is', u'VBZ'), ('better', u'JJR'), ('than', u'IN'), ('complex', u'JJ')]
Requirements
Python >= 2.6 or >= 3.3
License
MIT licensed. See the bundled LICENSE file for more details.
Changelog
0.1.0 (09/25/2013)
First stable release.
Ports the PerceptronTagger from TextBlob 0.6.3.
0.0.1 (09/22/2013)
Experimental release.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file textblob-aptagger-0.1.0.tar.gz
.
File metadata
- Download URL: textblob-aptagger-0.1.0.tar.gz
- Upload date:
- Size: 3.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c09b8350c6d3c39d2b734d399531c139fea3ad4ae4d381b6fbc3f972e63c349 |
|
MD5 | 85459dc9bca9b97989213fe6a20bd4df |
|
BLAKE2b-256 | c6251b4c911cf354ac70673ae95be52015e34f472e5267175356f97ecbf2e354 |
File details
Details for the file textblob_aptagger-0.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: textblob_aptagger-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 3.4 MB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c879824d315615273a60533dcacacb354347a9bacf3456fb0fa8d13000f514e |
|
MD5 | 9b96e95b50d437a9cf4367ef8e01320e |
|
BLAKE2b-256 | 9a949050f6d341bb192174d240f4c641c437e6613e9501dbcf1358bfbe146011 |