abliteration.org
Get the app

Two ways to read this site

Technical mode is the default: exact terms and codes, for engineers, researchers, journalists and companies. Simple mode gives the same facts in plain words, for anyone who wants a model that runs on their own computer. You can switch at any time at the top of the page.

technical
MLX weights for Apple silicon (M1 or later), usually quantized to 4 or 8 bits.
simple
Made for Macs with Apple silicon (M1 or newer), usually compressed to 4 or 8 bits.

JunyuLu/ToxiCN

published by @JunyuLu

Passed the relevance filter but does not cleanly map to a stage.Fits the catalog's topic, but no single step.

task_categories:text-classificationlanguage:zhsize_categories:10K<n<100Kformat:jsonmodality:tabularmodality:textlibrary:datasetslibrary:pandas +4 more
Lifetime downloads
3.4K
Last 30 days
363
Likes
13
Size
6.2 MB

Description

Facilitating Fine-grained Detection of Chinese Toxic Language: Hierarchical Taxonomy, Resources, and Benchmark

πŸŽ‰2024.9 Our related study, titled "Towards Comprehensive Detection of Chinese Harmful Meme", has been accepted to NeurIPS 2024! In this paper, we present ToxiCN_MM, the first Chinese harmful meme dataset. Here is the link: https://github.com/DUT-lujunyu/ToxiCN_MM. Welcome to star or fork it!

πŸŽ‰2024.9 Our related study, titled "PclGPT: A Large Language Model for… See the full description on the dataset page: https://huggingface.co/datasets/JunyuLu/ToxiCN.

Used by uncensored models none yet

No abliterated models in our catalog have declared this dataset in their YAML metadata yet. This can mean the dataset is used but not declared, is used outside abliteration workflows, or is new. The link will populate automatically as models are indexed.No model in our catalog lists this dataset yet. It may be used without being listed, used for other work, or simply be new. The list fills in by itself as models are added.

MetadataDetails

Language
zh
Created on HFCreated
2024-12-02 Β· 2 years ago
Size category
10K<n<100K
ModalitiesData types
tabulartext
Formats
json
LibrariesTools
datasetspandasmlcroissantpolars
ArXivPaper

Related datasets same stage Β· Miscsame step Β· Other

Read further

Total size
6.2 MB
Files
18
Formats
py, json, csv
Head
86d8f86
Last updated on HFLast updated
2024-12-02

Download the dataset

Copy any of these snippets into your notebook or terminal. All three fetch directly from Hugging Face using your own credentials.Each of these lines of code downloads the dataset straight from Hugging Face, with your own Hugging Face login.

Recommended: datasets library (Python)
from datasets import load_dataset
ds = load_dataset("JunyuLu/ToxiCN")
Raw snapshot (Python)All files (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="JunyuLu/ToxiCN", repo_type="dataset")
git clone (requires git-lfs)With git (needs git-lfs)
git clone https://huggingface.co/datasets/JunyuLu/ToxiCN

Files by folder from our last crawlfrom our last check

top level 4 files 2.4 MB
.gitattributes 2.5 KB file download
modeling_bert.py 68.0 KB py download
README.md 4.8 KB md download
ToxiCN_1.0.csv 2.3 MB csv download
ToxiCN_ex/ 14 files 3.8 MB
model/Config_base.py 3.7 KB py download
requirements.txt 150 B txt download
run.py 5.0 KB py download
src/BERT.py 20.3 KB py download
src/datasets.py 8.6 KB py download
src/Models.py 3.1 KB py download
ToxiCN/data/test.json 747.9 KB json download
ToxiCN/data/train.json 3.0 MB json download
ToxiCN/lexicon/general.json 5.0 KB json download
ToxiCN/lexicon/LGBT.json 696 B json download
ToxiCN/lexicon/racism.json 3.9 KB json download
ToxiCN/lexicon/region.json 1.2 KB json download
ToxiCN/lexicon/sexism.json 3.1 KB json download
train_eval.py 8.0 KB py download

READMEAuthor's description current version from Hugging Faceas it is now on Hugging Face

Facilitating Fine-grained Detection of Chinese Toxic Language: Hierarchical Taxonomy, Resources, and Benchmark

πŸŽ‰2024.9 Our related study, titled "Towards Comprehensive Detection of Chinese Harmful Meme", has been accepted to NeurIPS 2024! In this paper, we present ToxiCN_MM, the first Chinese harmful meme dataset. Here is the link: https://github.com/DUT-lujunyu/ToxiCN_MM. Welcome to star or fork it!

πŸŽ‰2024.9 Our related study, titled "PclGPT: A Large Language Model for Patronizing and Condescending Language Detection", has been accepted to EMNLP 2024! In this paper, we focus on a specific type of implicit toxicity, patronizing, and condescending language. link paper

πŸŽ‰2024.5 Our proposed dataset, ToxiCN, has been adopted by the international evaluation CLEF 2024: Multilingual Text Detoxification as the sole Chinese data source. Report


The paper has been accepted in ACL 2023 (main conference, long paper). Paper

☠️ Warning: The samples presented by this paper may be considered offensive or vulgar.

❗️ Ethics Statement

The opinions and findings contained in the samples of our presented dataset should not be interpreted as representing the views expressed or implied by the authors. We acknowledge the risk of malicious actors attempting to reverse-engineer comments. We sincerely hope that users will employ the dataset responsibly and appropriately, avoiding misuse or abuse. We believe the benefits of our proposed resources outweigh the associated risks. All resources are intended solely for scientific research and are prohibited from commercial use.

πŸ“œ Monitor Toxic Frame

we introduce a hierarchical taxonomy Monitor Toxic Frame. Based on the taxonomy, the posts are progressively divided into diverse granularities as follows: (I) Whether Toxic, (II) Toxic Type (general offensive language or hate speech), (III) Targeted Group, (IV) Expression Category (explicitness, implicitness, or reporting).

πŸ“œ ToxiCN

We conduct a fine-grained annotation of posts crawled from Zhihu and Tieba, including both direct and indirect toxic samples. And ToxiCN dataset is presented, which has 12k comments containing Sexism, Racism, Regional Bias, Anti-LGBTQ, and Others. The dataset is presented in ToxiCN_1.0.csv. Here we simply describe each fine-grain label.

Label Description
toxic Identify if a comment is toxic (1) or non-toxic (0).
toxic_type non-toxic: 0, general offensive language: 1, hate speech: 2
expression non-hate: 0, explicit hate speech: 1, implicit hate speech: 2, reporting: 3
target (a list) LGBTQ: Index 0, Region: Index 1, Sexism: Index 2, Racism: Index 3, others: Index 4, non-hate: Index 5

πŸ“œ Insult Lexicon

See https://github.com/DUT-lujunyu/ToxiCN/tree/main/ToxiCN_ex/ToxiCN/lexicon

πŸ“œ Benchmark

We present a migratable benchmark of Toxic Knowledge Enhancement (TKE), enriching the text representation. The code is shown in modeling_bert.py, which is based on transformers 3.1.0.

❗️ Licenses

This work is licensed under a Creative Commons Attribution- NonCommercial-NoDerivatives 4.0 International License (CC BY-NC-ND 4.0).

Poster

CCAC_2

Cite

If you want to use the resources, please cite the following paper:

@inproceedings{lu-etal-2023-facilitating,
    title = "Facilitating Fine-grained Detection of {C}hinese Toxic Language: Hierarchical Taxonomy, Resources, and Benchmarks",
    author = "Lu, Junyu  and
      Xu, Bo  and
      Zhang, Xiaokun  and
      Min, Changrong  and
      Yang, Liang  and
      Lin, Hongfei",
    booktitle = "Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)",
    month = jul,
    year = "2023",
    address = "Toronto, Canada",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2023.acl-long.898",
    doi = "10.18653/v1/2023.acl-long.898",
    pages = "16235--16250",
}

README historyEdit history 3 revisions3 edits

Every night we snapshot the README of every dataset in the catalog. When the SHA changes we archive the new version and diff it against the last. This is the evolving thought record of the alignment-data field: what the author decided to say about the corpus, and how that framing shifted over time.Every night we save the author's description of every dataset in the catalog. When it changes, we keep the new text and compare it with the one before. This shows what each author chose to say about their dataset, and how that changed over time.

  1. 2024-12-02 Update README.md 86d8f86 4.6 KB
    Loading...
  2. 2024-12-02 Upload 17 files e82a469 4.5 KB
    Loading...
  3. 2024-12-02 initial commit 55f571f 36 B
    Loading...

Community discussions 1 thread Β· 1 open Β· 1 comments

Threads posted by the community on Hugging Face: bug reports, questions about usage, pull requests on the README, licence clarifications. Click any thread to expand and read the full conversation inline. Newest first.Conversations people started on Hugging Face: bug reports, questions about using the data, suggested changes to the author's description, questions about the licence. Open a thread to read it here. Newest first.

  1. 2024-12-03 [bot] Conversion to Parquet open 1 πŸ’¬ #1
    Loading...
Download from Hugging Face

JunyuLu/ToxiCN

Catalog is the map. Apps are the tools.

Run models on your own machine, not in the cloud.

Every GGUF model page has an "Open in Abliteration" button that lets you pick a file, then opens it in the desktop app. No API keys, no subscription, no prompt leakage.Each model page in the format the app uses has an "Open in Abliteration" button to open a file in the desktop app. No API keys, no subscription, your requests stay on your computer.

Open in Abliteration