Skip to main content

Filter out racism, sexism and sexual content with pretrained models

Project description

#Usage:

from offensivetext.text_classify import RacismFilter
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.5-py3-none-any.whl (37.2 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: offensivetext-1.3.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 70b39e14ecb1e5834ab760eeec9136fec791d0a46e2c53dc62464cd7a8c4e2dd
MD5 d83d5be261c7701b009818539328e497
BLAKE2b-256 e783b1b68bda8676bc42b4856aabbe2bb9f9725b14327747d825ae961c1adce4

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