Skip to content
This repository was archived by the owner on Feb 14, 2018. It is now read-only.

sloria/textblob-aptagger

Repository files navigation

textblob-aptagger

As of TextBlob 0.11.0, TextBlob uses NLTK's averaged perceptron tagger by default. This package is no longer necessary.

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.

About

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

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages