Skip to main content

A combination of classification implementations for finding if text is 'friendly', 'hostile', or 'neutral'

Project description

Noah's Sentiment Classifier

A simple ensemble sentiment classifier using TextBlob, VADER, and Transformers (including Roberta).

Installation

pip install noahs_sentiment_classifier

Code Sample

from noahs_sentiment_classifier import classify, classify_textblob, classify_vader, classify_transformers, classify_roberta

value = classify("i hate you")
# value will be either "hostile","friendly","neutral" 
# or None if there is uncertainty

value2 = classify_textblob("i love you")
# value2 will be either "hostile","friendly","neutral" 

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

noahs_sentiment_classifier-0.1.5.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

noahs_sentiment_classifier-0.1.5-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file noahs_sentiment_classifier-0.1.5.tar.gz.

File metadata

File hashes

Hashes for noahs_sentiment_classifier-0.1.5.tar.gz
Algorithm Hash digest
SHA256 10ad8eeb3fa18d6ed965fe592eba73af5b71c5efcfd1680dd749d5a5bf3d9a95
MD5 562a79666a25e447da46119c3a287141
BLAKE2b-256 a3f0031ee040123db5f4ac6755af3c932dc86a6efe1251eef877f94ddb42e1c4

See more details on using hashes here.

File details

Details for the file noahs_sentiment_classifier-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for noahs_sentiment_classifier-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 eb3fe2a043d51b47df165a5ef19214e51da2435746f3da24e9dc6f65e43198a9
MD5 c15df44d63dc729ab895edaf40450ac8
BLAKE2b-256 369f49c5c86645054edcabf4f4de90dd076d3c6885a30e46d4926883125742fe

See more details on using hashes here.

Supported by

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