xusenlin commited on
Commit
8ee0ca9
·
1 Parent(s): e122728

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +31 -0
README.md CHANGED
@@ -1,3 +1,34 @@
1
  ---
 
 
 
 
2
  license: apache-2.0
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - zh
4
+ tags:
5
+ - named entity recognition
6
  license: apache-2.0
7
+ datasets:
8
+ - CMeEE
9
+ metrics:
10
+ - micro f1
11
  ---
12
+
13
+ # GPLinker关系抽取模型
14
+
15
+ ## 模型介绍
16
+
17
+ + 数据集:CMeEE中文医学文本命名实时识别
18
+
19
+ + 模型方法:[Efficient GlobalPointer:少点参数,多点效果](https://spaces.ac.cn/archives/8877)
20
+
21
+ ## 使用方法
22
+
23
+ ```commandline
24
+ pip install lightningnlp
25
+ ```
26
+
27
+ ```python
28
+ from pprint import pprint
29
+ from lightningnlp.task.named_entity_recognition import NerPipeline
30
+
31
+ pipline = NerPipeline(model_name_or_path="xusenlin/cmeee-global-pointer", model_name="global-pointer", model_type="bert")
32
+ text = "可伴发血肿或脑梗死而出现局灶性神经体征,如肢体瘫痪及颅神经异常等。"
33
+ pprint(pipline(text))
34
+ ```