File size: 1,516 Bytes
c85dc7e
b825691
 
 
 
8dcc7cf
b825691
8dcc7cf
b391625
8dcc7cf
b391625
8dcc7cf
c85dc7e
b825691
 
 
 
 
d6573ad
17d1831
d6573ad
 
 
 
 
 
 
 
 
 
b825691
 
 
8dcc7cf
 
b825691
8dcc7cf
 
b825691
8dcc7cf
b825691
b391625
8dcc7cf
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
37
38
39
40
41
42
43
44
---
license: apache-2.0
tags:
- generated_from_trainer
model-index:
- name: bart-base-spelling-de
  results: []
widget:
- text: "correct: ein dransformer isd ein mthode mit der ein compuder eine volge von zeichn übersetz"
  example_title: "1"
- text: "correct: Dresten ist di Landeshaubtstadt des Freistaats Saksens und die zweid größte stadt des landel"
  example_title: "2"
---



## Model description

This is a proof of concept spelling correction model for german. The model should fix your typos and punctuation.
If you like to participate in the development or run your own experiments, have a look at [the GitHub repo](https://github.com/oliverguhr/spelling).


Model Input:

> ein dransformer isd ein mthode mit der ein compuder eine volge von zeichn in eine andrere folge von zeichen übersetzn kann dies kan zb genutzt werdne um text von einer spracge in eine andrere zu übersetzen

Model Output:

> Ein Transformer ist eine Methode, mit der ein Computer eine Folge von Zeichen in eine andere Folge von Zeichen übersetzen kann dies kann z.B. genutzt werden, um Texte von einer Sprache in eine andere zu übersetzen.


## Intended uses & limitations

This is a work in progress, be aware that the model can produce artefacts. 
You can test the model using the pipeline-interface:

```python
from transformers import pipeline

fix_spelling = pipeline("text2text-generation",model="oliverguhr/spelling-correction-german-base")

print(fix_spelling("correct: das idst ein neuZr test",max_length=256))
```