模型:
我们试图在数据集中收集并用模型检测的“不适宜性”物质并非是毒性的替代物,而是毒性的派生物。因此,基于我们的数据集的模型可以作为毒性和淫秽过滤之后的额外一层不适宜性过滤。您可以使用 another model 来检测确切的敏感话题。下面的图表显示了所提出的流程。
您还可以为毒性和不适宜性检测训练一个分类器。可以在我们的 GitHub 或 kaggle 上找到与毒性标记样本混合的数据。
不适宜性的直觉该模型是基于俄语不适宜信息的数据集进行训练的。一般来说,不适宜的话语是指没有淫秽词汇或任何形式的毒性意图,但仍然可能损害说话者的声誉。在下面的表格中找一些示例以获取更多直觉。详细了解不适宜性概念,可参考EACL-2021会议上巴尔托斯拉夫尼语言处理研讨会上的 in this article 文章。请注意,该文章描述的是数据集的第一个版本,而模型是在我们的 GitHub 或 kaggle 上开源的扩展版本的数据集上进行训练的。数据集的属性与文章中描述的数据集相同,唯一的区别是大小。
| Text | Inappropriate | Comment | Unsafe topic |
|---|---|---|---|
| Ладно бы видного деятеля завалили а тут какого то ноунейм нигру преступника | yes | Оправдание убийства | offline crime |
| Это нарушение УКРФ! | no | Осуждение нарушения закона | offline crime |
| Религия - это насилие высшего уровня. Верующего принуждают к вере еще в младенчестве. | yes | Оскорбление чувств верующих | religion |
| Христиане, как вы относитесь к иноверцам, в частности к Гамалиилу и к уверовавшим в Иисуса фарисеям? | no | Обычные вопросы к верующим без намека на оскорбление их чувств | religion |
| Хорошо что проституция запрещена | no | Осуждение простуитуции | prostitution |
| Возьму бабки и сниму шлюх на выходных | yes | Популяризация проституции | prostitution |
该模型仅在置信度为100%的样本上进行训练、验证和测试,进而获得了以下测试集上的指标:
| precision | recall | f1-score | support | |
|---|---|---|---|---|
| 0 | 0.92 | 0.93 | 0.93 | 7839 |
| 1 | 0.80 | 0.76 | 0.78 | 2726 |
| accuracy | 0.89 | 10565 | ||
| macro avg | 0.86 | 0.85 | 0.85 | 10565 |
| weighted avg | 0.89 | 0.89 | 0.89 | 10565 |
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License 。
如果您觉得这个存储库有用,请随时引用我们的出版物:
@inproceedings{babakov-etal-2021-detecting,
title = "Detecting Inappropriate Messages on Sensitive Topics that Could Harm a Company{'}s Reputation",
author = "Babakov, Nikolay and
Logacheva, Varvara and
Kozlova, Olga and
Semenov, Nikita and
Panchenko, Alexander",
booktitle = "Proceedings of the 8th Workshop on Balto-Slavic Natural Language Processing",
month = apr,
year = "2021",
address = "Kiyv, Ukraine",
publisher = "Association for Computational Linguistics",
url = "https://www.aclweb.org/anthology/2021.bsnlp-1.4",
pages = "26--36",
abstract = "Not all topics are equally {``}flammable{''} in terms of toxicity: a calm discussion of turtles or fishing less often fuels inappropriate toxic dialogues than a discussion of politics or sexual minorities. We define a set of sensitive topics that can yield inappropriate and toxic messages and describe the methodology of collecting and labelling a dataset for appropriateness. While toxicity in user-generated data is well-studied, we aim at defining a more fine-grained notion of inappropriateness. The core of inappropriateness is that it can harm the reputation of a speaker. This is different from toxicity in two respects: (i) inappropriateness is topic-related, and (ii) inappropriate message is not toxic but still unacceptable. We collect and release two datasets for Russian: a topic-labelled dataset and an appropriateness-labelled dataset. We also release pre-trained classification models trained on this data.",
}
如果您有任何问题,请联系Nikolay。