dardem commited on
Commit
f986f74
2 Parent(s): 79e4cee ae76615

Merge branch 'main' of https://huggingface.co/SkolkovoInstitute/ruT5-base-detox into main

Browse files
Files changed (1) hide show
  1. README.md +21 -0
README.md ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ This is the detoxification baseline model trained on the [train](https://github.com/skoltech-nlp/russe_detox_2022/blob/main/data/input/train.tsv) part of "RUSSE 2022: Russian Text Detoxification Based on Parallel Corpora" competition. The source sentences are Russian toxic messages from Odnoklassniki, Pikabu, and Twitter platforms. The base model is [ruT5](https://huggingface.co/sberbank-ai/ruT5-base) provided from Sber.
2
+
3
+ **How to use**
4
+ ```python
5
+ from transformers import T5ForConditionalGeneration, AutoTokenizer
6
+
7
+ base_model_name = 'sberbank-ai/ruT5-base'
8
+ model_name = 'SkolkovoInstitute/ruT5-base-detox'
9
+
10
+ tokenizer = AutoTokenizer.from_pretrained(base_model_name)
11
+ model = T5ForConditionalGeneration.from_pretrained(model_name)
12
+ ```
13
+
14
+ ## Licensing Information
15
+
16
+ [Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License][cc-by-nc-sa].
17
+
18
+ [![CC BY-NC-SA 4.0][cc-by-nc-sa-image]][cc-by-nc-sa]
19
+
20
+ [cc-by-nc-sa]: http://creativecommons.org/licenses/by-nc-sa/4.0/
21
+ [cc-by-nc-sa-image]: https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png