
# Romanian grammar
![v1.0](https://img.shields.io/badge/V.1-31.03.2023-brightgreen)

This model is trained on sentences with words in the root form. To bring the words to a syntactically correct form.

# Prefix

grammar: text

### How to use
```python
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM

tokenizer = AutoTokenizer.from_pretrained("BlackKakapo/t5-small-grammar-ro-root")
model = AutoModelForSeq2SeqLM.from_pretrained("BlackKakapo/t5-small-grammar-ro-root")
```

### Or
```cmd
pip install happytransformer
```

```python
from happytransformer import TTSettings, HappyTextToText

happy_tt_save = HappyTextToText('T5',r"BlackKakapo/t5-small-grammar-ro")
beam_settings =  TTSettings(num_beams=10, min_length=10, max_length=100)
```
### Generate
```python
sent = "As dori ca sa corecteze toate greșelile."
prefix = "grammar: "
example = prefix + sent

result = happy_tt_save.generate_text(example, args=beam_settings)

print(result.text)
```
### Output
```out
Aș dori ca să corecteze toate greșelile.
```
{"language": ["ro"], "license": ["apache-2.0"], "tags": [], "annotations_creators": [], "language_creators": ["machine-generated"], "multilinguality": ["monolingual"], "pretty_name": "BlackKakapo/t5-small-grammar-ro-root", "size_categories": ["100K<n<1M"], "source_datasets": ["original"], "task_categories": ["text2text-generation"], "task_ids": []}
transformers pytorch safetensors t5 text2text-generation ro license:apache-2.0 autotrain_compatible endpoints_compatible text-generation-inference region:us
TAGS
#transformers #pytorch #safetensors #t5 #text2text-generation #ro #license-apache-2.0 #autotrain_compatible #endpoints_compatible #text-generation-inference #region-us 


# Romanian grammar
!v1.0

This model is trained on sentences with words in the root form. To bring the words to a syntactically correct form.

# Prefix

grammar: text

### How to use


### Or



### Generate

### Output

# Romanian grammar
!v1.0

This model is trained on sentences with words in the root form. To bring the words to a syntactically correct form. # Prefix

grammar: text ### How to use ### Or ### Generate ### Output
TAGS
#transformers #pytorch #safetensors #t5 #text2text-generation #ro #license-apache-2.0 #autotrain_compatible #endpoints_compatible #text-generation-inference #region-us 
 # Romanian grammar
!v1.0

This model is trained on sentences with words in the root form. To bring the words to a syntactically correct form. # Prefix

grammar: text ### How to use ### Or ### Generate ### Output
TAGS
#transformers #pytorch #safetensors #t5 #text2text-generation #ro #license-apache-2.0 #autotrain_compatible #endpoints_compatible #text-generation-inference #region-us 
# Romanian grammar
!v1.0

This model is trained on sentences with words in the root form. To bring the words to a syntactically correct form.# Prefix

grammar: text### How to use### Or### Generate### Output