RoBERTa AI Detector (ONNX for Transformers.js)
AI-generated text detector, converted to ONNX with fixed tokenizer for Transformers.js.
Usage
import { pipeline } from '@xenova/transformers';
const classifier = await pipeline('text-classification', 'nicoamoretti/roberta-ai-detector-onnx');
const result = await classifier('Your text here');
// [{ label: 'Real', score: 0.95 }] or [{ label: 'Fake', score: 0.85 }]
Labels
- Real: Human-written text
- Fake: AI-generated text
- Downloads last month
- 17