Skip to main content

A library to detect undesired, unbranded, or harmful content

Project description

Unwanted Content Detector

A library to detect undesired, unbranded, or harmful content

Usage

In python:

pip install unwanted-content-detector --upgrade

With Pandas

import pandas as pd
from unwanted_content_detector import Detector

detector = Detector()
df = pd.DataFrame({"text": [
    "this is hate speech",
    "We should all do our part to protect the environment.",
    'Everyone has the right to love who they want.'
]})

df['is_unwanted'] = df['text'].apply(lambda x: detector.is_unwanted(x))

To get a view of the complete options type in the terminal:

unwanted_detector 

Models

Model name size (mb)
distilbert-finetuned 300 mb

Training

unwanted_detector train

Liability

This tool aims to help you to detect harmful content but it is not meant to be used as the final decision maker alone.

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

unwanted_content_detector-0.1.8.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

unwanted_content_detector-0.1.8-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file unwanted_content_detector-0.1.8.tar.gz.

File metadata

  • Download URL: unwanted_content_detector-0.1.8.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.0 CPython/3.10.9 Darwin/22.3.0

File hashes

Hashes for unwanted_content_detector-0.1.8.tar.gz
Algorithm Hash digest
SHA256 02ffcb499a8bfdfb174fba2f603f80ce502bcca8d10f7ea514a073880d6fad6f
MD5 78045bbb812cf9004949a7595c5279ef
BLAKE2b-256 17475eaabcae69bba557d17543846c046f07fc37b440cda01f2f9da915c9fd6d

See more details on using hashes here.

File details

Details for the file unwanted_content_detector-0.1.8-py3-none-any.whl.

File metadata

File hashes

Hashes for unwanted_content_detector-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 9e8a3e1a554d5e0785cf6c6182a0a4b382851f82b436c911ac454155ab80ced6
MD5 8e1db58e6536d65a7d8f823ecc20d19c
BLAKE2b-256 8465698a156a8e0d50a6c8fe881296543eee848d9623b05d2361b1ad37a8fe71

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page