s-nlp / bart-base-detox

huggingface.co
Total runs: 183
24-hour runs: 17
7-day runs: -30
30-day runs: 25
Model's Last Updated: October 14 2024
text-generation

Introduction of bart-base-detox

Model Details of bart-base-detox

Model Overview

This is the model presented in the paper "ParaDetox: Detoxification with Parallel Data" .

The model itself is BART (base) model trained on parallel detoxification dataset ParaDetox achiving SOTA results for detoxification task. More details, code and data can be found here .

How to use

from transformers import BartForConditionalGeneration, AutoTokenizer
base_model_name = 'facebook/bart-base'
model_name = 'SkolkovoInstitute/bart-base-detox'
tokenizer = AutoTokenizer.from_pretrained(base_model_name)
model = BartForConditionalGeneration.from_pretrained(model_name)

Citation

@inproceedings{logacheva-etal-2022-paradetox,
    title = "{P}ara{D}etox: Detoxification with Parallel Data",
    author = "Logacheva, Varvara  and
      Dementieva, Daryna  and
      Ustyantsev, Sergey  and
      Moskovskiy, Daniil  and
      Dale, David  and
      Krotova, Irina  and
      Semenov, Nikita  and
      Panchenko, Alexander",
    booktitle = "Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)",
    month = may,
    year = "2022",
    address = "Dublin, Ireland",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2022.acl-long.469",
    pages = "6804--6818",
    abstract = "We present a novel pipeline for the collection of parallel data for the detoxification task. We collect non-toxic paraphrases for over 10,000 English toxic sentences. We also show that this pipeline can be used to distill a large existing corpus of paraphrases to get toxic-neutral sentence pairs. We release two parallel corpora which can be used for the training of detoxification models. To the best of our knowledge, these are the first parallel datasets for this task.We describe our pipeline in detail to make it fast to set up for a new language or domain, thus contributing to faster and easier development of new parallel resources.We train several detoxification models on the collected data and compare them with several baselines and state-of-the-art unsupervised approaches. We conduct both automatic and manual evaluations. All models trained on parallel data outperform the state-of-the-art unsupervised models by a large margin. This suggests that our novel datasets can boost the performance of detoxification systems.",
}

Runs of s-nlp bart-base-detox on huggingface.co

183
Total runs
17
24-hour runs
-25
3-day runs
-30
7-day runs
25
30-day runs

More Information About bart-base-detox huggingface.co Model

More bart-base-detox license Visit here:

https://choosealicense.com/licenses/openrail++

bart-base-detox huggingface.co

bart-base-detox huggingface.co is an AI model on huggingface.co that provides bart-base-detox's model effect (), which can be used instantly with this s-nlp bart-base-detox model. huggingface.co supports a free trial of the bart-base-detox model, and also provides paid use of the bart-base-detox. Support call bart-base-detox model through api, including Node.js, Python, http.

bart-base-detox huggingface.co Url

https://huggingface.co/s-nlp/bart-base-detox

s-nlp bart-base-detox online free

bart-base-detox huggingface.co is an online trial and call api platform, which integrates bart-base-detox's modeling effects, including api services, and provides a free online trial of bart-base-detox, you can try bart-base-detox online for free by clicking the link below.

s-nlp bart-base-detox online free url in huggingface.co:

https://huggingface.co/s-nlp/bart-base-detox

bart-base-detox install

bart-base-detox is an open source model from GitHub that offers a free installation service, and any user can find bart-base-detox on GitHub to install. At the same time, huggingface.co provides the effect of bart-base-detox install, users can directly use bart-base-detox installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

bart-base-detox install url in huggingface.co:

https://huggingface.co/s-nlp/bart-base-detox

Url of bart-base-detox

bart-base-detox huggingface.co Url

Provider of bart-base-detox huggingface.co

s-nlp
ORGANIZATIONS

Other API from s-nlp

huggingface.co

Total runs: 22
Run Growth: 0
Growth Rate: 0.00%
Updated:September 08 2023
huggingface.co

Total runs: 15
Run Growth: -1
Growth Rate: -6.67%
Updated:August 25 2022
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:June 25 2024