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 Read the Docs

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.9.tar.gz (72.4 MB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: tonereader-0.1.9.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.30.0 setuptools/67.7.2 requests-toolbelt/0.8.0 tqdm/4.64.1 CPython/3.8.10

File hashes

Hashes for tonereader-0.1.9.tar.gz
Algorithm Hash digest
SHA256 7907f3a0e19dd10381dd83254b0fa6be01d198c5389777e361a99d74f863b6f7
MD5 d59a455f0fc234b9ad85bf50b1326cb9
BLAKE2b-256 ac4471220305c92f94b6559f8750b1271a8f4de40e013bdbb48e6fdafdf6276b

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