cointegrated / rut5-small-normalizer

huggingface.co
Total runs: 1.8K
24-hour runs: 42
7-day runs: 144
30-day runs: 93
Model's Last Updated: March 17 2023
text-generation

Introduction of rut5-small-normalizer

Model Details of rut5-small-normalizer

This is a small Russian denoising autoencoder. It can be used for restoring corrupted sentences.

This model was produced by fine-tuning the rut5-small model on the task of reconstructing a sentence:

  • restoring word positions (after slightly shuffling them)
  • restoring dropped words and punctuation marks (after dropping some of them randomly)
  • restoring inflection of words (after changing their inflection randomly using natasha and pymorphy2 packages)

The fine-tuning was performed on a Leipzig web corpus of Russian sentences.

The model can be applied as follows:

# !pip install transformers sentencepiece
import torch
from transformers import T5ForConditionalGeneration, T5Tokenizer
tokenizer = T5Tokenizer.from_pretrained("cointegrated/rut5-small-normalizer")
model = T5ForConditionalGeneration.from_pretrained("cointegrated/rut5-small-normalizer")

text = 'меня тобой не понимать'
inputs = tokenizer(text, return_tensors='pt')
with torch.no_grad():
    hypotheses = model.generate(
        **inputs, 
        do_sample=True, top_p=0.95, 
        num_return_sequences=5, 
        repetition_penalty=2.5,
        max_length=32,
    )
for h in hypotheses:
    print(tokenizer.decode(h, skip_special_tokens=True))

A possible output is:

# Мне тебя не понимать.
# Если бы ты понимаешь меня?
# Я с тобой не понимаю.
# Я тебя не понимаю.
# Я не понимаю о чем ты.

Runs of cointegrated rut5-small-normalizer on huggingface.co

1.8K
Total runs
42
24-hour runs
126
3-day runs
144
7-day runs
93
30-day runs

More Information About rut5-small-normalizer huggingface.co Model

More rut5-small-normalizer license Visit here:

https://choosealicense.com/licenses/mit

rut5-small-normalizer huggingface.co

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

rut5-small-normalizer huggingface.co Url

https://huggingface.co/cointegrated/rut5-small-normalizer

cointegrated rut5-small-normalizer online free

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

cointegrated rut5-small-normalizer online free url in huggingface.co:

https://huggingface.co/cointegrated/rut5-small-normalizer

rut5-small-normalizer install

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

rut5-small-normalizer install url in huggingface.co:

https://huggingface.co/cointegrated/rut5-small-normalizer

Url of rut5-small-normalizer

rut5-small-normalizer huggingface.co Url

Provider of rut5-small-normalizer huggingface.co

cointegrated
ORGANIZATIONS

Other API from cointegrated