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

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

lemonify-1.1.1-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (224.5 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

lemonify-1.1.1-cp39-cp39-macosx_11_0_arm64.whl (42.6 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: lemonify-1.1.1.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-1.1.1.tar.gz
Algorithm Hash digest
SHA256 9531cc6a4e47fe445e97e3c447b35f9e882f8069d4ca5f1a35f31de674fd303f
MD5 4103b5c859e14f30c738c4a50ce25d50
BLAKE2b-256 1c1e74993c8658959db7e43cbbd8e92e70e9478fe0d650c979f861164158c961

See more details on using hashes here.

File details

Details for the file lemonify-1.1.1-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for lemonify-1.1.1-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 54448f78c39b5cc97e62f2389f1c965dd31c5725729086ae47f52bb676e5dfdc
MD5 a2a55e580ff92c44f7257684616de911
BLAKE2b-256 40f40fc8a3de94d1e190fc8331602a315c933b1b5da58b7a7ccd7a97353e218c

See more details on using hashes here.

File details

Details for the file lemonify-1.1.1-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for lemonify-1.1.1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 28ac1387586d6bfbd15ea5f44bed9e9d041b02f3ee7adcd80368a702f2acd790
MD5 b30f335dc1a3ffeed883042b8d8c1b6f
BLAKE2b-256 39404b5cb8e49ea63a4a743ef26bafc5198efb8c396604e841769026cccc323d

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