Skip to content

OfficialDex/Lemonify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

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:>

PyPi url

https://pypi.org/project/lemonify/

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages