Sentiment analysis, as easy as copy-and-paste
Python
Switch branches/tags
Nothing to show
Latest commit b70bace Dec 22, 2013 @sloria sloria Bump version -> 0.2.1
Permalink
Failed to load latest commit information.
.gitignore First commit Aug 21, 2013
MANIFEST.in First commit Aug 21, 2013
README.rst Add POS tagging. Sep 1, 2013
setup.cfg First commit Aug 21, 2013
setup.py Bump version -> 0.2.1 Dec 22, 2013
tbpaste.py Bump version -> 0.2.1 Dec 22, 2013
test_tbpaste.py Require textblob>=0.8.2 Dec 22, 2013
tox.ini First commit Aug 21, 2013

README.rst

tbpaste

tbpaste is a command-line utility that runs sentiment analysis on the contents of your clipboard.

Usage

  1. Copy some text to your clipboard.
  2. Run tbpaste in your shell for the magic.

http://i.imgur.com/npxon.gif

More magic

tbpaste sentiment
Run sentiment analysis. This is the default behavior (same as running tbpaste). The sentiment score is within the range [-1.0, 1.0]. The subjectivity score is within the range [0.0, 1.0].
tbpaste chunks
Extract noun phrases.
tbpaste --sentences=t
Process each sentence in the copied text. This is the default behavior. Set --sentences=f to suppress tokenization.
tbpaste lang
Detect language. Language code reference.
tbpaste lang --from en --to fr
Translate between languages. If --from is omitted, tbpaste will try to detect the source language. Language code reference.
tbpaste tag
Output part-of-speech tags for each word in the copied text.

Features

  • Sentiment analysis
  • Noun phrase extraction
  • Translation
  • Part-of-speech tagging
  • Colored output
  • Cross-platform

Get it now

$ pip install -U tbpaste
$ curl https://raw.github.com/sloria/TextBlob/master/download_corpora.py | python

You should now be able to run the tbpaste command.

Requirements

  • Python >= 2.7 or >= 3.3

License

MIT Licensed.