Commit
•
67a3e4b
1
Parent(s):
f10548f
Update README.md
Browse files
README.md
CHANGED
@@ -11,6 +11,7 @@ datasets:
|
|
11 |
- mlsum
|
12 |
---
|
13 |
|
|
|
14 |
T5 model fine-tuned for punctuation restoration.
|
15 |
Model currently supports only French Language. More language supports will be added later using mT5.
|
16 |
|
@@ -21,3 +22,33 @@ Model trained using 2 french datasets (around 500k records):
|
|
21 |
|
22 |
|
23 |
more info will be added later.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
- mlsum
|
12 |
---
|
13 |
|
14 |
+
# Text Punctuator Based on Transformers model T5.
|
15 |
T5 model fine-tuned for punctuation restoration.
|
16 |
Model currently supports only French Language. More language supports will be added later using mT5.
|
17 |
|
|
|
22 |
|
23 |
|
24 |
more info will be added later.
|
25 |
+
|
26 |
+
---------------------------
|
27 |
+
## 🚀 Usage
|
28 |
+
**Below is a quick way to get up and running with the model.**
|
29 |
+
1. First, install the package.
|
30 |
+
```bash
|
31 |
+
pip install TextPunctuator
|
32 |
+
```
|
33 |
+
2. Sample python code.
|
34 |
+
```python
|
35 |
+
|
36 |
+
from Punctuator import TextPunctuator
|
37 |
+
|
38 |
+
punctuator = TextPunctuator(use_gpu=False)
|
39 |
+
|
40 |
+
text = "Sur la base de ces échanges Blake Lemoine a donc jugé que le système avait atteint un niveau de conscience lui permettant d’être sensible Ce dernier a ensuite envoyé par email un rapport sur la sensibilité supposée de LaMDA à deux cents employés de Google Très vite les dirigeants de l’entreprise ont rejeté les allégations"
|
41 |
+
|
42 |
+
text_punctuated = punctuator.punctuate(text, lang='fr')
|
43 |
+
|
44 |
+
text_punctuated
|
45 |
+
# Outputs the following:
|
46 |
+
# Sur la base de ces échanges, Blake Lemoine a donc jugé que le système avait atteint un niveau de conscience lui permettant d’être sensible. Ce dernier a ensuite envoyé par email un rapport sur la sensibilité supposée de LaMDA à deux cents employés de Google. Très vite, les dirigeants de l’entreprise ont rejeté les allégations.
|
47 |
+
```
|
48 |
+
|
49 |
+
-----------------------------------------------
|
50 |
+
## ☕ Contact
|
51 |
+
Contact [Zakarya ROUZKI ](mailto:zakaryarouzki@gmail.com) or at [Linkedin](https://linkedin.com/in/rouzki).
|
52 |
+
|
53 |
+
-----------------------------------------------
|
54 |
+
|