Skip to main content
Insults
-----
TLDR: This project is very similar in functionality and purpose to Google's recent `Perspective API <https://www.perspectiveapi.com/>`_ project

Usage
````````````
Save in a hello.py:
.. code:: python
from insults import Insults

comment = "You are a disgusting maggot of a person."
Insults.load_model()
Insults.rate_comment(comment)

> 0.89

Install
`````````````````
And run it:
.. code:: bash
$ pip install insults

Links
`````
* `Perspective API website <https://www.perspectiveapi.com/>`_
* `Github Repo:
<https://github.com/thundergolfer/Insults>`_


Credit
``````
* `cbrew` <https://github.com/cbrew>`_ for their original data-science work in
`Imperium's Kaggle Competition` <https://www.kaggle.com/c/detecting-insults-in-social-commentary>`_. Code in `cbrew/Insults <https://github.com/cbrew/Insults`_

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

insults-0.1.12.tar.gz (22.8 MB view details)

Uploaded Source

File details

Details for the file insults-0.1.12.tar.gz.

File metadata

  • Download URL: insults-0.1.12.tar.gz
  • Upload date:
  • Size: 22.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for insults-0.1.12.tar.gz
Algorithm Hash digest
SHA256 1a58cae068b8b623f629cf1fe03a1bfd23fda7c95282fd80cab7b381ecf9c9e9
MD5 bae111f58b9dae513c282d4d8973b111
BLAKE2b-256 a21a342d20046ee5b3b2c6d3fe3873acc04a1c1a5fd0e7b8e90ba5b71b03204c

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.12 This release

1 file

0.1.11

1 file

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