shibing624
commited on
Commit
•
e45934f
1
Parent(s):
b636fd7
Update README.md
Browse files
README.md
CHANGED
@@ -20,8 +20,11 @@ widget:
|
|
20 |
|
21 |
`macbert4csc-base-chinese` evaluate SIGHAN2015 test data:
|
22 |
|
23 |
-
-
|
24 |
-
|
|
|
|
|
|
|
25 |
|
26 |
由于训练使用的数据使用了SIGHAN2015的训练集(复现paper),在SIGHAN2015的测试集上达到SOTA水平。
|
27 |
|
@@ -36,15 +39,14 @@ widget:
|
|
36 |
```python
|
37 |
from pycorrector.macbert.macbert_corrector import MacBertCorrector
|
38 |
|
39 |
-
|
40 |
|
41 |
-
i =
|
42 |
print(i)
|
43 |
```
|
44 |
|
45 |
-
|
46 |
|
47 |
-
*Please use 'Bert' related functions to load this model!*
|
48 |
|
49 |
```python
|
50 |
import operator
|
|
|
20 |
|
21 |
`macbert4csc-base-chinese` evaluate SIGHAN2015 test data:
|
22 |
|
23 |
+
| | Correct-Precision | Correct-Recall | Correct-F1 |
|
24 |
+
|--|--|--|--|
|
25 |
+
| Chararcter-level | 93.72 | 86.40 | 89.91 |
|
26 |
+
| Sentence-level | 82.64 | 73.66 | 77.89 |
|
27 |
+
|
28 |
|
29 |
由于训练使用的数据使用了SIGHAN2015的训练集(复现paper),在SIGHAN2015的测试集上达到SOTA水平。
|
30 |
|
|
|
39 |
```python
|
40 |
from pycorrector.macbert.macbert_corrector import MacBertCorrector
|
41 |
|
42 |
+
m = MacBertCorrector("shibing624/macbert4csc-base-chinese")
|
43 |
|
44 |
+
i = m.correct('今天新情很好')
|
45 |
print(i)
|
46 |
```
|
47 |
|
48 |
+
当然,你也可使用`transformers`调用:
|
49 |
|
|
|
50 |
|
51 |
```python
|
52 |
import operator
|