
NER Toxic models

Fine-tuning [cointegrated/rubert-tiny-toxicity](https://huggingface.co/cointegrated/rubert-tiny-toxicity) model on data from [toxic_dataset_ner](https://huggingface.co/datasets/tesemnikov-av/toxic_dataset_ner)

language: RU

```python
!pip install transformers > /dev/null

from transformers import (
    AutoModelForTokenClassification, 
    AutoTokenizer, 
    pipeline
)

model = AutoModelForTokenClassification.from_pretrained('tesemnikov-av/rubert-ner-toxicity')
tokenizer = AutoTokenizer.from_pretrained('tesemnikov-av/rubert-ner-toxicity')


pipe = pipeline(model=model, tokenizer=tokenizer, task='ner', aggregation_strategy='average')
text = "Они охриневшие там все придурки!!"

print(text)
print(pipe(text))
```

{"widget": [{"text": "\u041d\u0443 \u0442\u044b \u0438 \u043f\u0440\u0438\u0434\u0443\u0440\u043e\u043a!!"}]}
transformers pytorch bert token-classification autotrain_compatible endpoints_compatible region:us
TAGS
#transformers #pytorch #bert #token-classification #autotrain_compatible #endpoints_compatible #region-us 


NER Toxic models

Fine-tuning cointegrated/rubert-tiny-toxicity model on data from toxic_dataset_ner

language: RU



TAGS
#transformers #pytorch #bert #token-classification #autotrain_compatible #endpoints_compatible #region-us 

passage: TAGS
#transformers #pytorch #bert #token-classification #autotrain_compatible #endpoints_compatible #region-us 
