aiassociates
commited on
Commit
·
a94429f
1
Parent(s):
9993949
Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,36 @@
|
|
1 |
---
|
|
|
|
|
|
|
|
|
2 |
license: cc-by-nc-sa-4.0
|
|
|
|
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
+
language: de
|
3 |
+
tags:
|
4 |
+
- grammar
|
5 |
+
- text2text-generation
|
6 |
license: cc-by-nc-sa-4.0
|
7 |
+
datasets:
|
8 |
+
- jfleg
|
9 |
---
|
10 |
+
|
11 |
+
# T5 Grammar Correction
|
12 |
+
|
13 |
+
This model does restore upper and lower case as well as punctuation.
|
14 |
+
It was trained with [Happy Transformer](https://github.com/EricFillion/happy-transformer) on the german wikipedia dump.
|
15 |
+
|
16 |
+
|
17 |
+
## Usage
|
18 |
+
|
19 |
+
`pip install happytransformer `
|
20 |
+
|
21 |
+
```python
|
22 |
+
from happytransformer import HappyTextToText, TTSettings
|
23 |
+
happy_tt = HappyTextToText("T5", "aiassociates/t5-small-grammar-correction-german")
|
24 |
+
args = TTSettings(num_beams=5, min_length=1)
|
25 |
+
# Add the prefix "grammar: " before each input
|
26 |
+
result = happy_tt.generate_text("grammar: hier ein kleines beispiel", args=args)
|
27 |
+
print(result.text) # Hier ein kleines Beispiel.
|
28 |
+
|
29 |
+
## Authors
|
30 |
+
**David Hustadt:** dh@ai.associates
|
31 |
+
|
32 |
+
## About us
|
33 |
+
[AI.Associates](https://www.ai.associates/)
|
34 |
+
[LinkedIn](https://www.linkedin.com/company/ai-associates)
|
35 |
+
|
36 |
+
We're always looking for developers to join us. Feel free to contact us careers@ai.associates
|