Update README.md
Browse files
README.md
CHANGED
|
@@ -21,14 +21,16 @@ metrics:
|
|
| 21 |
## 使用方法
|
| 22 |
|
| 23 |
```commandline
|
| 24 |
-
pip install
|
| 25 |
```
|
| 26 |
|
| 27 |
```python
|
| 28 |
from pprint import pprint
|
| 29 |
-
from
|
| 30 |
|
| 31 |
-
pipline = NerPipeline(
|
| 32 |
text = "可伴发血肿或脑梗死而出现局灶性神经体征,如肢体瘫痪及颅神经异常等。"
|
| 33 |
pprint(pipline(text))
|
| 34 |
```
|
|
|
|
|
|
|
|
|
| 21 |
## 使用方法
|
| 22 |
|
| 23 |
```commandline
|
| 24 |
+
pip install lieie
|
| 25 |
```
|
| 26 |
|
| 27 |
```python
|
| 28 |
from pprint import pprint
|
| 29 |
+
from litie.pipelines import NerPipeline
|
| 30 |
|
| 31 |
+
pipline = NerPipeline("global-pointer", model_name_or_path="xusenlin/cmeee-global-pointer")
|
| 32 |
text = "可伴发血肿或脑梗死而出现局灶性神经体征,如肢体瘫痪及颅神经异常等。"
|
| 33 |
pprint(pipline(text))
|
| 34 |
```
|
| 35 |
+
|
| 36 |
+
更多模型的训练和推理详见 [lit-ie](https://github.com/xusenlinzy/lit-ie)
|