Skip to main content

Lemon is a free, lightweight text classifier to indentify toxicity, insult, sexuality, threat, neutrality from a sentance

Project description

Lemon 🍋

Lemon is a free, lighterweight and fast python library to detect toxicity, insult, sexuality, threat, neutrality from text. It utilizes machine learning to do so.

Installation

pip install lemonify

**NOTE FOR WINDOWS USER: ** This library uses a small compiled extension on Windows (sdist install). So you must install Microsoft Visual C++ Build Tools first.

  1. Download and install: https://visualstudio.microsoft.com/visual-cpp-build-tools/

  2. During setup, select: "Desktop development with C++"

  3. Then run:

python -m pip install --upgrade pip setuptools wheel
pip install lemonify

Example usage

from lemonify import lemon

print(lemon("you are stupid"))

Response example

{'toxicity': 1.0, 'insult': 1.0, 'sexuality': 0.0, 'threat': 0.0, 'neutrality': 0.0}

Note that the value of emotions are in floating points between 0 and 1

Made with ♥️ by Blaze

Feel free to DM me on discord if there's any issues Blaze :>

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

lemonify-0.3.tar.gz (91.9 kB view details)

Uploaded Source

File details

Details for the file lemonify-0.3.tar.gz.

File metadata

  • Download URL: lemonify-0.3.tar.gz
  • Upload date:
  • Size: 91.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for lemonify-0.3.tar.gz
Algorithm Hash digest
SHA256 52d87fb14b5d521c8c1667b29cd70df1d5e1da036a2a3ec9afb6c81ed4ab27e3
MD5 b2c8d581c44ea758cf7e3d3e034c4bc6
BLAKE2b-256 f58b518897184b6dfb4025d638e5d714ef7ce810d9e3d3b775cd5294b989f00f

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