Commit
·
3affdaf
1
Parent(s):
dccf794
added a simple sample code
Browse files
README.md
CHANGED
|
@@ -27,6 +27,15 @@ This model predicts the punctuation of English, Italian, French and German texts
|
|
| 27 |
This multilanguage model was trained on the [Europarl Dataset](https://huggingface.co/datasets/wmt/europarl) provided by the [SEPP-NLG Shared Task](https://sites.google.com/view/sentence-segmentation). *Please note that this dataset consists of political speeches. Therefore the model might perform differently on texts from other domains.*
|
| 28 |
|
| 29 |
The model restores the following punctuation markers: **"." "," "?" "-" ":"**
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
|
| 31 |
## Results
|
| 32 |
|
|
|
|
| 27 |
This multilanguage model was trained on the [Europarl Dataset](https://huggingface.co/datasets/wmt/europarl) provided by the [SEPP-NLG Shared Task](https://sites.google.com/view/sentence-segmentation). *Please note that this dataset consists of political speeches. Therefore the model might perform differently on texts from other domains.*
|
| 28 |
|
| 29 |
The model restores the following punctuation markers: **"." "," "?" "-" ":"**
|
| 30 |
+
## Sample Code
|
| 31 |
+
|
| 32 |
+
```
|
| 33 |
+
from transformers import pipeline
|
| 34 |
+
|
| 35 |
+
pipe = pipeline("token-classification", "oliverguhr/fullstop-punctuation-multilang-large")
|
| 36 |
+
pipe(["this is an example that you can actually run"])
|
| 37 |
+
```
|
| 38 |
+
|
| 39 |
|
| 40 |
## Results
|
| 41 |
|