File size: 1,131 Bytes
0ae86a8 a94429f 0ae86a8 9aff1e6 e3a080d 0ae86a8 a94429f e5c4c53 a94429f e3a080d 4984dc7 a94429f 4984dc7 a94429f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
---
language: de
tags:
- grammar
- text2text-generation
license: cc-by-nc-sa-4.0
widget:
- text: "grammar: hier ein kleines beispiel was haltet ihr von der korrektur"
---
# T5 Grammar Correction
This model restores upper and lower case as well as punctuation. It was trained with [Happy Transformer](https://github.com/EricFillion/happy-transformer) on the German Wikipedia dump.
## Usage
`pip install happytransformer `
```python
from happytransformer import HappyTextToText, TTSettings
happy_tt = HappyTextToText("T5", "aiassociates/t5-small-grammar-correction-german")
args = TTSettings(num_beams=5, min_length=1)
# Add the prefix "grammar: " before each input
result = happy_tt.generate_text("grammar: hier ein kleines beispiel was haltet ihr von der korrektur", args=args)
print(result.text) # Hier ein kleines Beispiel: Was haltet ihr von der Korrektur?
```
## Authors
**David Hustadt:** dh@ai.associates
## About us
[AI.Associates](https://www.ai.associates/)
[LinkedIn](https://www.linkedin.com/company/ai-associates)
We're always looking for developers to join us. Feel free to contact us careers@ai.associates |