CROWDCOUNTER
收藏资源简介:
CROWDCOUNTER数据集由印度理工学院创建,是一个专门用于评估特定类型反仇恨言论生成的新型基准数据集。该数据集包含3425对仇恨言论与反仇恨言论的配对,涵盖六种不同的反仇恨言论类型(同理心、幽默、质疑、警告、羞辱、矛盾)。数据集的创建过程包括从HateXplain数据集中采样仇恨言论,并通过众包平台设计避免常见陷阱的注释框架,确保注释者撰写特定类型的反仇恨言论,从而保证响应的多样性。CROWDCOUNTER数据集的应用领域主要集中在开发反仇恨言论生成工具,旨在帮助社交媒体管理员和用户有效地应对仇恨言论,同时维护言论自由。
The CROWDCOUNTER dataset was developed by the Indian Institute of Technology, and it is a novel benchmark dataset specifically tailored for evaluating the generation of a specific category of anti-hate speech. This dataset comprises 3425 paired samples of hate speech and anti-hate speech, covering six distinct types of anti-hate speech: empathy, humor, questioning, warning, shaming, and contradiction. The development pipeline of the CROWDCOUNTER dataset includes sampling hate speech from the HateXplain dataset, and designing an annotation framework via crowdsourcing platforms to circumvent common pitfalls, ensuring that annotators generate anti-hate speech of the specified types, thereby guaranteeing the diversity of the responses. The primary application scope of the CROWDCOUNTER dataset lies in developing anti-hate speech generation tools, which aims to assist social media administrators and users in effectively addressing hate speech while preserving freedom of speech.
CrowdCounter: A benchmark type-specific multi-target counterspeech dataset
概述
CrowdCounter 是一个包含 3,425 对仇恨言论与反驳言论的数据集,涵盖六种不同的反驳类型(同理心、幽默、质疑、警告、羞辱、矛盾)。该数据集旨在为开发反驳言论生成工具提供高质量和多样化的数据支持。
数据集特点
- 类型多样性:包含六种不同的反驳类型。
- 高质量:通过特定的标注平台设计,鼓励标注者编写类型特定、非冗余且高质量的反驳言论。
数据集结构
- 训练数据:用于模型微调的训练数据源。
- 验证数据:用于模型微调的验证数据源。
- 测试数据:用于模型微调的测试数据源。
使用方法
环境设置
在运行任何脚本之前,设置以下环境变量: bash export TF_CPP_MIN_LOG_LEVEL=1 export WANDB_DISABLED=true export TRANSFORMERS_NO_ADVISORY_WARNINGS=true export TOKENIZERS_PARALLELISM=false
模型微调
- 文件名:
finetuning.py - 微调标志:
--train_data:训练数据源--val_data:验证数据源--test_data:测试数据源--train_sizes:训练数据大小--val_sizes:验证数据大小--test_sizes:测试数据大小--model:模型名称--model_path:模型路径--type_specific:启用类型特定生成--train_batch_size:训练批次大小--val_batch_size:验证批次大小--num_epochs:训练轮数--num_workers:数据加载器工作线程数--lr:学习率--q4bit:量化--peft:Peft--fp16:半精度--grad_ckpt:梯度检查点
生成样本
- 文件名:
generation.py - 生成标志:
--model_path:模型路径--save_path:保存路径--device:设备(CPU/GPU)--causal_lm:因果语言建模--seq2seq_lm:序列到序列语言建模--test_data:测试数据源--test_sizes:测试数据大小--random_seed:随机种子--q4bit:量化--peft:Peft--type_specific:启用类型特定生成--batch_size:批次大小
评分
- 文件名:
scoring.py - 评分标志:
--file_name:Generated_Samples 文件夹中的文件名
引用
请在任何使用这些资源发表的作品中引用我们的论文。

- 1CrowdCounter: A benchmark type-specific multi-target counterspeech dataset印度理工学院 · 2024年



