Sentiment analysis, as easy as copy-and-paste
Project description
tbpaste is a command-line utility that runs sentiment analysis on the contents of your clipboard.
Usage
Copy some text to your clipboard.
Run tbpaste in your shell for the magic.
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.
Features
Sentiment analysis
Noun phrase extraction
Translation
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
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
Hashes for tbpaste-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe462acf482e59f16f35a8daf94ae11061c78f1a3ee8fefb3c551bfabb248ca7 |
|
MD5 | fcef1776a640e9537af36123927afc28 |
|
BLAKE2b-256 | 97daff61197e77c50d145db8a388496fb91fc47a29a92565eb10bbe6d170a18e |