shibing624
commited on
Commit
·
0cccf82
1
Parent(s):
5349ae3
Update README.md
Browse files
README.md
CHANGED
@@ -9,12 +9,12 @@ tags:
|
|
9 |
license: "apache-2.0"
|
10 |
---
|
11 |
|
12 |
-
#
|
13 |
中文实体识别模型
|
14 |
|
15 |
-
`
|
16 |
|
17 |
-
The overall performance of
|
18 |
|
19 |
| | Accuracy | Recall | F1 |
|
20 |
| ------------ | ------------------ | ------------------ | ------------------ |
|
@@ -24,11 +24,11 @@ The overall performance of BERT on people **test**:
|
|
24 |
|
25 |
## Usage
|
26 |
|
27 |
-
本项目开源在实体识别项目:[nerpy](https://github.com/shibing624/nerpy),可支持
|
28 |
|
29 |
```shell
|
30 |
>>> from nerpy import NERModel
|
31 |
-
>>> model = NERModel("
|
32 |
>>> predictions, raw_outputs, entities = model.predict(["常建良,男,1963年出生,工科学士,高级工程师"], split_on_space=False)
|
33 |
entities: [('常建良', 'PER'), ('1963年', 'TIME')]
|
34 |
```
|
|
|
9 |
license: "apache-2.0"
|
10 |
---
|
11 |
|
12 |
+
# BertSpan for Chinese Named Entity Recognition(bertspan4ner) Model
|
13 |
中文实体识别模型
|
14 |
|
15 |
+
`bertspan4ner-base-chinese` evaluate PEOPLE(人民日报) test data:
|
16 |
|
17 |
+
The overall performance of BertSpan on people **test**:
|
18 |
|
19 |
| | Accuracy | Recall | F1 |
|
20 |
| ------------ | ------------------ | ------------------ | ------------------ |
|
|
|
24 |
|
25 |
## Usage
|
26 |
|
27 |
+
本项目开源在实体识别项目:[nerpy](https://github.com/shibing624/nerpy),可支持bertspan模型,通过如下命令调用:
|
28 |
|
29 |
```shell
|
30 |
>>> from nerpy import NERModel
|
31 |
+
>>> model = NERModel("bertspan", "shibing624/bertspan4ner-base-chinese")
|
32 |
>>> predictions, raw_outputs, entities = model.predict(["常建良,男,1963年出生,工科学士,高级工程师"], split_on_space=False)
|
33 |
entities: [('常建良', 'PER'), ('1963年', 'TIME')]
|
34 |
```
|