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 between 0 and 1 in float **

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.2.tar.gz (91.9 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: lemonify-0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 48ea1ebce7e7e702830f4d3e61fe863a85bde43e90834a546382744509b8fea8
MD5 0d2a9a9e0122df7b2f028a61d1bfb970
BLAKE2b-256 8d429c31ee4d5a309daaf476601dc8d2b2b19c123d689dc82a543e85d1075874

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