Skip to main content

A fast and accurate part-of-speech tagger for TextBlob.

Project description

Latest version Travis-CI

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-aptagger

Usage

>>> from textblob 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.2.0 (10/21/2013)

  • Compatibility with Textblob>=0.8.0.

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


Download files

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

Source Distribution

textblob-aptagger-0.2.0.tar.gz (3.4 MB view details)

Uploaded Source

Built Distribution

textblob_aptagger-0.2.0-py2.py3-none-any.whl (3.4 MB view details)

Uploaded Python 2 Python 3

File details

Details for the file textblob-aptagger-0.2.0.tar.gz.

File metadata

File hashes

Hashes for textblob-aptagger-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b251a4d8626fbd98e50e36db577e8dad2091161c63c8ba6b4b3d9cdbcbc09fae
MD5 dc34226853bb62d0a11ca638abbc1251
BLAKE2b-256 8ed70f650195cddbc24daf735c2f564b675ad37ce3b89f571b06c6ad2e4404f5

See more details on using hashes here.

File details

Details for the file textblob_aptagger-0.2.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for textblob_aptagger-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1ed281f37b3646475503ce77347d0ed92a5f4de176a63c6ab4d1064636067dcc
MD5 4568ab2941445664936b081293658020
BLAKE2b-256 c008814f5a12bc7d7f87f03185323e66c2d103fb8dc3a42f05af40f53b28ecac

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page