SatireTR
收藏资源简介:
SatireTR是一个土耳其讽刺新闻数据集,包含从土耳其讽刺新闻出版物Zaytung和土耳其新闻社AA收集的2202篇讽刺文章和4781篇非讽刺文章,以及40篇讽刺文章的人工标注。
SatireTR is a Turkish satirical news dataset consisting of 2202 satirical articles and 4781 non-satirical articles collected from the Turkish satirical news publication Zaytung and Turkish news agency AA, as well as manual annotations for 40 satirical articles.
SatireTR: Turkish Satirical News Dataset
数据集概述
- 数据来源: 数据集包含从土耳其讽刺新闻出版物Zaytung和土耳其新闻社AA收集的
SATIRICAL和NON-SATIRICAL语料。 - 数据规模:
SATIRICAL文章: 2202篇NON-SATIRICAL文章: 4781篇
- 人工标注: 对40篇
SATIRICAL文章进行了人工标注。
数据文件
- 原始数据:
satirical_zaytung.csvnonsatirical_aa.csv
- 人工标注文件:
satirical_human_annotated_40.docxsatirical_human_annotated_40.pdf
去偏和去偏后的讽刺数据
- 研究背景: 该数据集是在研究"Make Satire Boring Again: Reducing Stylistic Bias of Satirical Corpus by Utilizing Generative LLMs"的范围内整理的。
- 代码和生成数据: 代码和生成的数据可在
DebiasingPipeline文件夹中找到。
训练和测试数据
- 训练和测试样本: 土耳其讽刺新闻数据集的训练和测试样本可在
DebiasingPipeline/code/data中找到。 - 跨领域测试: 使用IronyTR进行跨领域测试。
- 跨语言测试: 使用News Headlines Dataset进行跨语言测试。
训练讽刺分类器
-
依赖安装: 需要安装相关库,命令如下:
pip install -r requirements.txt
-
WandB API密钥: 需要提供WandB API密钥,命令如下:
wandb.login(key=WANDB_API_KEY)
-
评估管道: 可以使用掩码语言模型在数据集上评估提出的管道,命令如下:
python debiasing_BERT_based.py --model_id "FacebookAI/xlm-roberta-large" --train "biased" --cache_dir None --skip_train False
--wandb_proj_name "zaytung" -
Llama模型评估: 需要先接受Hugging Face上的LICENSE AGREEMENT并生成访问令牌,然后可以运行Llama微调代码,命令如下:
python llama_finetune.py --model_id "meta-llama/Llama-3.1-8B-Instruct" --hf_token "Hugging Face token" --train_file "data/train_combined.csv" --test_file "data/onion_test.csv" --output_dir "output/biased" --cache_dir None --skip_train False
--epochs 5 --batch_size 2 --wandb_proj_name "zaytung"




