File size: 657 Bytes
76c2c77
0cafb7b
 
 
 
76c2c77
 
 
 
 
0cafb7b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
---
title: Text Moderation API
emoji: 🛡️
colorFrom: red
colorTo: blue
sdk: docker
pinned: false
license: mit
---

# Text Moderation API

A robust text moderation API that analyzes user-generated content and returns moderation actions (allow/flag/delete).

## Features

- **Pattern matching** for common harmful content
- **ML-based detection** using BERT models for toxicity and hate speech
- **Leet speak normalization** to catch obfuscated harmful content
- **Fast response times** with efficient processing

## API Usage

### Endpoint: `/moderate`

**Method:** POST

**Request Body:**
```json
{
  "user_id": "user123",
  "text": "Text to moderate"
}