Update README.md
Browse files
README.md
CHANGED
|
@@ -30,11 +30,15 @@ The model restores the following punctuation marks: [, 。 ? !]. It suppor
|
|
| 30 |
RedPost source code [github](https://github.com/FireRedTeam/FireRedChat/tree/main/fireredasr-server/server/redpost)
|
| 31 |
Below is an example of how to use the FireRedChat-punc model for punctuation restoration:
|
| 32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
```python
|
| 34 |
import os
|
| 35 |
from redpost import RedPost, RedPostConfig
|
| 36 |
|
| 37 |
-
punc_model_dir =
|
| 38 |
post_config = RedPostConfig(
|
| 39 |
use_gpu=True,
|
| 40 |
sentence_max_length=30
|
|
|
|
| 30 |
RedPost source code [github](https://github.com/FireRedTeam/FireRedChat/tree/main/fireredasr-server/server/redpost)
|
| 31 |
Below is an example of how to use the FireRedChat-punc model for punctuation restoration:
|
| 32 |
|
| 33 |
+
```bash
|
| 34 |
+
git clone https://huggingface.co/hfl/chinese-lert-base FireRedChat-punc/chinese-lert-base
|
| 35 |
+
```
|
| 36 |
+
|
| 37 |
```python
|
| 38 |
import os
|
| 39 |
from redpost import RedPost, RedPostConfig
|
| 40 |
|
| 41 |
+
punc_model_dir = "./FireRedChat-punc"
|
| 42 |
post_config = RedPostConfig(
|
| 43 |
use_gpu=True,
|
| 44 |
sentence_max_length=30
|