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.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.0-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.0-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.tar.gz.

File metadata

  • Download URL: lemonify-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.tar.gz
Algorithm Hash digest
SHA256 0c3982df4b1003361868a094ba5b96a4d370e40d98fce45b312f7850ea7f0870
MD5 368e38dc142039c2c5543799705f297f
BLAKE2b-256 61b19721b1ba17d3284f23c163b69b27681bbef2aa3155440eb18efc2e662b0b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lemonify-1.0-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2432b4a9f70dea33a707261e45cc1049aff1eff4dac961fb852e0a06f6564ce8
MD5 1ce47b8b2d6a43afa7a0f03110a9a308
BLAKE2b-256 3b0cce72fb7d14627403cee21dc096ec716590d56c186b5e277b6addbfa250a9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lemonify-1.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 23959f67114142125a6b56831bec2ee9aa8fc37cedf34fbd4df424df9faa0771
MD5 b4d07d4ca91aee3c84da9ddd37c15941
BLAKE2b-256 9e4230a80c834ba904d380483f3abb555afd03d4ef901e2ed758fc4db8d3b236

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