Repositorio del proyecto desarrollado para la tarea PAN 2025 de Multilingual Text Detoxification. Su objetivo es generar versiones no tóxicas de textos ofensivos en varios idiomas manteniendo el contenido original. Incluye experimentos con modelos de lenguaje, evaluación y análisis de resultados.
0
stars
34
commits
Jupyter Notebook
primary language
Dec 11, 2025
updated
Repositorio del proyecto desarrollado para la tarea PAN 2025 de Multilingual Text Detoxification. Su objetivo es generar versiones no tóxicas de textos ofensivos en varios idiomas manteniendo el contenido original. Incluye experimentos con modelos de lenguaje, evaluación y análisis de resultados.
This project focuses on text detoxification, transforming toxic or harmful texts into neutral versions that preserve their original meaning but remove any form of toxicity.
There are several possible approaches to achieve this goal:
Each approach has its own strengths and limitations. The following sections explore these ideas in detail.
This approach will likely involve two or more models.
First, a classifier will label each token as either toxic or non-toxic.
This can be done using two of the provided datasets:
datasets/multilingual_toxic_lexicon and datasets/multilingual_toxic_spans.
These datasets link tokens and expressions directly with their toxicity labels.
Once toxic tokens are detected, they will be masked, and a filling model will generate new words to replace them appropriately.
Advantages:
Disadvantages:
In this approach, a text generation model will be fine-tuned (using techniques such as LoRA or QLoRA) with the dataset datasets/toxic_nontoxic.
During fine-tuning, toxic phrases will be used as inputs, and the model will learn to minimize the difference between the output embeddings and those of the corresponding non-toxic phrases.
This allows the model to generate non-toxic text conditioned on a toxic input.
Advantages:
Disadvantages:
31 commits
3 commits
Jupyter Notebook
79.7%
HTML
10.8%
Python
9.5%
Repositorio del proyecto desarrollado para la tarea PAN 2025 de Multilingual Text Detoxification. Su objetivo es generar versiones no tóxicas de textos ofensivos en varios idiomas manteniendo el contenido original. Incluye experimentos con modelos de lenguaje, evaluación y análisis de resultados.
0
stars
34
commits
Jupyter Notebook
primary language
Dec 11, 2025
updated
Repositorio del proyecto desarrollado para la tarea PAN 2025 de Multilingual Text Detoxification. Su objetivo es generar versiones no tóxicas de textos ofensivos en varios idiomas manteniendo el contenido original. Incluye experimentos con modelos de lenguaje, evaluación y análisis de resultados.
This project focuses on text detoxification, transforming toxic or harmful texts into neutral versions that preserve their original meaning but remove any form of toxicity.
There are several possible approaches to achieve this goal:
Each approach has its own strengths and limitations. The following sections explore these ideas in detail.
This approach will likely involve two or more models.
First, a classifier will label each token as either toxic or non-toxic.
This can be done using two of the provided datasets:
datasets/multilingual_toxic_lexicon and datasets/multilingual_toxic_spans.
These datasets link tokens and expressions directly with their toxicity labels.
Once toxic tokens are detected, they will be masked, and a filling model will generate new words to replace them appropriately.
Advantages:
Disadvantages:
In this approach, a text generation model will be fine-tuned (using techniques such as LoRA or QLoRA) with the dataset datasets/toxic_nontoxic.
During fine-tuning, toxic phrases will be used as inputs, and the model will learn to minimize the difference between the output embeddings and those of the corresponding non-toxic phrases.
This allows the model to generate non-toxic text conditioned on a toxic input.
Advantages:
Disadvantages:
31 commits
3 commits
Jupyter Notebook
79.7%
HTML
10.8%
Python
9.5%