File size: 1,655 Bytes
a3824ba 39fb95d a3824ba d8523bb a3824ba 19c7328 a3824ba d515758 19c7328 a3824ba d3d28f0 a3824ba |
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 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
---
language:
- id
tags:
- punctuation prediction
- punctuation
widget:
- text: "halo bagaimana kabarmu"
example_title: "indonesian"
---
This model predicts the punctuation of Indonesian languange. It has been created to restore punctuation of transcribed from speech recognition models.
This model Based on the work https://github.com/oliverguhr/fullstop-deep-punctuation-prediction
The model restores the following punctuation markers: **"." "," "?" "-" ":"**
**Github** : https://github.com/CakraAIPub/Fullstop-indonesian-punctuation-prediction
## Install
To get started install the package from [pypi](https://pypi.org/project/deepmultilingualpunctuation/):
```bash
pip install deepmultilingualpunctuation
```
### Restore Punctuation
```python
from deepmultilingualpunctuation import PunctuationModel
model = PunctuationModel("Rizkinoor16/fullstop-indonesian-punctuation-prediction")
text = "halo bagaimana kabarmu"
result = model.restore_punctuation(text)
print(result)
```
**output**
> halo, bagaimana kabarmu?
## Results
```
precision recall f1-score support
0 0.98 0.99 0.98
. 0.89 0.91 0.90
, 0.84 0.79 0.81
? 0.84 0.79 0.82
- 0.96 0.90 0.93
: 0.91 0.89 0.90
accuracy 0.97
macro avg 0.90 0.88 0.89
weighted avg 0.97 0.97 0.97
```
## Contact
Rizki Noor <rizki@cakra.ai>
**Linkedin** : [Noor Muhamad Rizki](https://www.linkedin.com/in/noor-muhamad-rizki-114600231/) |