81 lines
2.0 KiB
Markdown
81 lines
2.0 KiB
Markdown
# Anti-AI Detector - 去AI化技能
|
||
|
||
检测并去除AI生成文本中的AI痕迹,支持中文、英文和小红书风格优化。
|
||
|
||
## 🎯 功能特性
|
||
|
||
- ✅ **中文去AI化** - 去除中文AI文本的典型痕迹
|
||
- ✅ **英文去AI化** - 基于Stop Slop的英文优化
|
||
- ✅ **小红书风格** - 针对小红书平台的特殊优化
|
||
- ✅ **自动检测** - 智能识别文本语言和场景
|
||
- ✅ **批量处理** - 支持文件批量处理
|
||
|
||
## 🚀 使用方法
|
||
|
||
### 命令行
|
||
|
||
```bash
|
||
# 处理单段文本
|
||
python3 /home/ubuntu/.nanobot/workspace/skills/anti-ai-detector/humanize.py "你的AI生成文本"
|
||
|
||
# 处理文件
|
||
python3 /home/ubuntu/.nanobot/workspace/skills/anti-ai-detector/humanize.py -f input.txt -o output.txt
|
||
|
||
# 指定风格
|
||
python3 /home/ubuntu/.nanobot/workspace/skills/anti-ai-detector/humanize.py -t xiaohongshu "文本"
|
||
|
||
# 批量处理
|
||
python3 /home/ubuntu/.nanobot/workspace/skills/anti-ai-detector/humanize.py -d ./articles/ --style zh
|
||
```
|
||
|
||
### Python API
|
||
|
||
```python
|
||
from anti_ai_detector import AntiAIDetector
|
||
|
||
detector = AntiAIDetector()
|
||
|
||
# 中文去AI化
|
||
result = detector.humanize_cn("值得注意的是...")
|
||
|
||
# 英文去AI化
|
||
result = detector.humanize_en("Here's the thing...")
|
||
|
||
# 小红书风格
|
||
result = detector.humanize_xhs("这个产品有三大优点...")
|
||
```
|
||
|
||
## 📋 检测规则
|
||
|
||
### 中文AI痕迹
|
||
- "值得注意的是..."
|
||
- "我们可以看到..."
|
||
- "换句话说..."
|
||
- "首先...其次...最后..."
|
||
- "不难发现..."
|
||
- "显而易见..."
|
||
|
||
### 英文AI痕迹(Stop Slop)
|
||
- "Here's the thing..."
|
||
- "Let that sink in..."
|
||
- "The uncomfortable truth is..."
|
||
- "Navigate the landscape"
|
||
- "Not because X. Because Y."
|
||
|
||
### 小红书风格优化
|
||
- 避免过于规整的排版
|
||
- 加入个人化口语
|
||
- emoji自然分布
|
||
- 去除营销感词汇
|
||
|
||
## 🔧 集成到IT资讯系统
|
||
|
||
在IT资讯项目的AI处理器中调用:
|
||
|
||
```python
|
||
from anti_ai_detector import AntiAIDetector
|
||
|
||
detector = AntiAIDetector()
|
||
translated = detector.humanize_cn(ai_output)
|
||
```
|