Skip to main content

# empathyMachines > A standalone NLP sentiment classifier you can import as a module

## Purposes

1. Offer a batteries-included NLP classifier you can use either on it’s own, or to make sentiment predictions as part of a broder NLP project (for example, when classifying customer messages, whether the customer is angry or not might help you determine if this is a compensation request, or a request to adjust their address.) 1. Have the entire sentiment prediction process scaffolded so you can feed in your own training corpus, and easily train an NLP sentiment classifier.

## How to use

1. Download the repo from GitHub (pip install coming later) 1. cd into repo, and pip install -r requirements.txt 1. In your Python code, from EmpathyMachines import EmpathyMachines 1. nlp_classifier = EmpathyMachines() 1. nlp_classifier.train(corpus=’Twitter’) 1. nlp_classifier.predict(text_string)

### Corpora included

### Include your own corpus (UNDER CONSTRUCTION)

Feel free to train a classifier on your own corpus!

Two ways to do this: 1. Read in a .csv file with header row containing “sentiment”, “text”, and optionally, “confidence” 1. Pass in an array of Python dictionaries, with attributes for “sentiment”, “text”, and optionally, “confidence”

1. Create a .csv file with the following fields 1. nlp_classifier.train(corpus=’custom’, corpus_path=’path/to/custom/corpus.csv’, analytics_output=False)

Metadata

Release files for empathy-machines 0.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for empathy-machines 0.5.1
File Size Uploaded Provenance Actions
empathy-machines-0.5.1.tar.gz 3.4 MB Without provenance Details for empathy-machines-0.5.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for empathy-machines 0.5.1
File Interpreter ABI Platform Actions
empathy_machines-0.5.1-py2.py3-none-any.whl Python 3, Python 2 none any Details for empathy_machines-0.5.1-py2.py3-none-any.whl

Total release size: 3.4 MB

Release files / empathy-machines-0.5.1.tar.gz

Download URL empathy-machines-0.5.1.tar.gz
Size 3.4 MB
Tags Source
SHA-256 checksum
How to use checksums
0533dd6faf43c1e4cc780e099f7f74cd76b61128e27889f8b0a52b0c0922a341
BLAKE2b-256 checksum
How to use checksums
5aef561e2c746e4bf1979560e8031c571b92287fa5e73541b2d4632592f75134
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / empathy_machines-0.5.1-py2.py3-none-any.whl

Download URL empathy_machines-0.5.1-py2.py3-none-any.whl
Size 3.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
f426bae6401fa67386049ee46c569d1e5e860ddb72fb8c365a2aa91179ffde47
BLAKE2b-256 checksum
How to use checksums
c1a9a8892e76b3ed49b1aba724ec7b34d8d81552060f97342ee20365e448978f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for empathy-machines 0.5.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.5.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page