Commit
·
e5ddef7
1
Parent(s):
ef69ed7
updated readme
Browse files
README.md
CHANGED
|
@@ -1,3 +1,45 @@
|
|
| 1 |
---
|
|
|
|
|
|
|
|
|
|
| 2 |
license: mit
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
- de
|
| 5 |
license: mit
|
| 6 |
+
widget:
|
| 7 |
+
- text: lets do a comparsion
|
| 8 |
+
example_title: EN 1
|
| 9 |
+
- text: Their going to be here so0n
|
| 10 |
+
example_title: EN 2
|
| 11 |
+
- text: das idst ein neuZr test
|
| 12 |
+
example_title: DE 1
|
| 13 |
+
- text: >-
|
| 14 |
+
ein dransformer isd ein mthode mit der ein compuder eine volge von zeichn
|
| 15 |
+
übersetz
|
| 16 |
+
example_title: DE 2
|
| 17 |
+
- text: can we mix the languages können wir die sprachen mischen
|
| 18 |
+
example_title: EN and DE
|
| 19 |
+
metrics:
|
| 20 |
+
- cer
|
| 21 |
+
pipeline_tag: text2text-generation
|
| 22 |
---
|
| 23 |
+
|
| 24 |
+
This is an experimental model that should fix your typos and punctuation.
|
| 25 |
+
If you like to run your own experiments or train for a different language, take a look at [the code](https://github.com/oliverguhr/spelling).
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
## Model description
|
| 29 |
+
|
| 30 |
+
This is a proof of concept **spelling correction model for English and German**.
|
| 31 |
+
|
| 32 |
+
## Intended uses & limitations
|
| 33 |
+
|
| 34 |
+
This project is work in progress, be aware that the model can produce artefacts.
|
| 35 |
+
You can test the model using the pipeline-interface:
|
| 36 |
+
|
| 37 |
+
```python
|
| 38 |
+
from transformers import pipeline
|
| 39 |
+
|
| 40 |
+
fix_spelling_pipeline = pipeline("text2text-generation",model="oliverguhr/spelling-correction-multilingual-base")
|
| 41 |
+
def fix_spelling(text, max_length = 256):
|
| 42 |
+
return fix_spelling_pipeline("fix:"+text,max_length = max_length)
|
| 43 |
+
|
| 44 |
+
print(fix_spelling_pipeline("can we mix the languages können wir die sprachen mischen",max_length=2048))
|
| 45 |
+
```
|