Skip to main content

Filter out racism, sexism and sexual content with pretrained models

Project description

#Usage:

from offensivetext import text_classify as filters
classifier = filters.RacismFilter()
prediction = classifier('black people are bad', 'drugs are good')
print(prediction)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

offensivetext-1.3.4-py3-none-any.whl (37.2 MB view details)

Uploaded Python 3

File details

Details for the file offensivetext-1.3.4-py3-none-any.whl.

File metadata

  • Download URL: offensivetext-1.3.4-py3-none-any.whl
  • Upload date:
  • Size: 37.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.4

File hashes

Hashes for offensivetext-1.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7ccaab891cd1cf66d033f400979543df17c5142b406d3a649262af0a830b3ba4
MD5 949525431554fad6850c0f39e2b9d909
BLAKE2b-256 c2f7771c6b147aedc9ff0023b0e1c062d91066dd4c383cb3b77d4ca84dbba200

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