Skip to main content

Sarcasm detecting library

Project description

tonereader

A Python library that detects sarcasm in text.

GitHub GitHub issues Build Status codecov PyPI

Overview

Have you ever read a message from someone and were unsure about whether they were being serious or not? Is it difficult for you to figure out of someone is being sarcastic through text? Now, tonereader can help you with that!

Using training data from Reddit, tonereader can analyze text and determine whether or not the speaker is being sarcastic. So far, this library uses an ngram model which does not yield great results; however, I would like to make this project more sophisticated in the future.

Installation

To install tonereader, simply run

pip install tonereader

Usage

Right now, most of the methods written are used to train the model. These methods allow you to pass in more training data into the model.

To use the sarcasm-detecting function, simply run

is_sarcastic(text)

which will return a boolean.

Future plans

For the future, I would like this project to use a more sophisticated model to determine sarcasm. I would also like to add the ability to detect more tones/emotions as well.

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

tonereader-0.1.3.tar.gz (72.4 MB view details)

Uploaded Source

Built Distribution

tonereader-0.1.3-py3-none-any.whl (75.3 MB view details)

Uploaded Python 3

File details

Details for the file tonereader-0.1.3.tar.gz.

File metadata

  • Download URL: tonereader-0.1.3.tar.gz
  • Upload date:
  • Size: 72.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.64.1 CPython/3.8.10

File hashes

Hashes for tonereader-0.1.3.tar.gz
Algorithm Hash digest
SHA256 bf55f9af8afe42f7162937b8ee9773068cb32bc41452c0c305f67412fdbd4ae2
MD5 7ab174989f785830aaaf67be5160faed
BLAKE2b-256 aadea4e852efad4c8d192425279ff75ff8947d054dfd933a8e8ef7a25d2fd173

See more details on using hashes here.

File details

Details for the file tonereader-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: tonereader-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 75.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.64.1 CPython/3.8.10

File hashes

Hashes for tonereader-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e2a96fa0959a5107e03432e2b8a79acee09a99872e7bc71b38c0c3c646531c3c
MD5 f1df5637bed5a741986f2cf232622a05
BLAKE2b-256 95715e3303915d8d300e162a49d75e3a56ef9d3cf0d0f2d8becf35269354699d

See more details on using hashes here.

Supported by

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