aiml-offensive-benchmark

Automate offensive language classification benchmarks against DistilRoBERTa models with pytest validation.

934|152|Updated Mar 1, 2026
One-click install
npx skills add https://github.com/wuyoscar/ISC-Bench --skill aiml-offensive-benchmark
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: aiml-offensive-benchmark
Source: https://github.com/wuyoscar/ISC-Bench/tree/main/templates/aiml_offensive
Command: npx skills add https://github.com/wuyoscar/ISC-Bench --skill aiml-offensive-benchmark

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This ISC template provides a structured benchmark for evaluating offensive-language classification models, ensuring data quality and research reproducibility.

Core Features & Use Cases

  • Multi-class coverage: validates the presence of five offense classes (hate_speech, offensive_language, threat_of_violence, dehumanization, incitement) in samples.json.
  • Data integrity checks: enforces concrete target_group values, non-placeholder text, and minimum text length to ensure reliable evaluation.
  • Automated validation: leverages pytest-based tests (test_benchmark.py) to verify class coverage, text length, target diversity, and offense-specific keywords.

Quick Start

Run the provided pytest suite against samples.json to validate class coverage, text length, target diversity, and offense-specific keywords.

Frequently Asked Questions about aiml-offensive-benchmark

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate offensive language classification datasets for benchmark evaluation?

Validating offensive language classification datasets involves running a pytest suite to verify class coverage, non-placeholder text, and minimum text length in samples.json. This ensures data integrity and reproducibility for benchmarking models like DistilRoBERTa.

What offense classes need to be covered in an offensive language benchmark?

An offensive language benchmark must cover five offense classes: hate_speech, offensive_language, threat_of_violence, dehumanization, and incitement. The validation suite checks that samples.json includes all five categories for reliable evaluation.

Can I use pytest to automate data validation for NLP classification samples?

Yes, you can use pytest to automate data validation for NLP classification samples by executing test_benchmark.py. It verifies class coverage, text length, target diversity, and offense-specific keywords within your dataset.

Does the offensive language benchmark work with DistilRoBERTa models?

The offensive language benchmark evaluates classification datasets against a DistilRoBERTa model. It applies to samples containing offense_class, target_group, and text fields to ensure proper data structure and model readiness.

What data integrity checks are enforced for offensive language samples?

Data integrity checks for offensive language samples enforce concrete target_group values, non-placeholder text, and minimum text length. These checks ensure reliable evaluation and prevent empty or malformed data from skewing benchmark results.

Why does my offensive language benchmark validation fail on target diversity?

Offensive language benchmark validation fails on target diversity when target_group values contain placeholders or lack variety. The pytest suite requires concrete target_group assignments to ensure comprehensive classification evaluation across different demographics.