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.7.tar.gz (8.8 kB view hashes)

Uploaded Source

Built Distribution

unwanted_content_detector-0.1.7-py3-none-any.whl (11.9 kB view hashes)

Uploaded Python 3

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