yinghy2018 commited on
Commit
2e5d994
·
verified ·
1 Parent(s): 6fc3587

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +56 -1
README.md CHANGED
@@ -2,7 +2,6 @@
2
  license: apache-2.0
3
  language:
4
  - zh
5
- - en
6
  base_model:
7
  - Qwen/Qwen2.5-7B-Instruct
8
  pipeline_tag: feature-extraction
@@ -41,6 +40,62 @@ texts = [PROMPT_TEMPLATE.format(query=k) for k in EHR]
41
  output = model.generate(texts, sampling_params)
42
  ```
43
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
44
 
45
  ## Citation [optional]
46
 
 
2
  license: apache-2.0
3
  language:
4
  - zh
 
5
  base_model:
6
  - Qwen/Qwen2.5-7B-Instruct
7
  pipeline_tag: feature-extraction
 
40
  output = model.generate(texts, sampling_params)
41
  ```
42
 
43
+ # An example
44
+
45
+ Input:
46
+ ```python
47
+ EHR = ['慢性乙型肝炎病史10余年,曾有肝功能异常,中医治疗后好转;1年余前查HBsAg转阴,但肝脏病理提示病毒性肝炎伴肝纤维化(G1S3-4)']
48
+ ```
49
+
50
+ Output:
51
+ ```python
52
+ res = [
53
+ { "术语": "慢性乙型肝炎",
54
+ "语义类型": "疾病、综合征、病理功能",
55
+ "叙述状态": "存在",
56
+ "身体部位": "无",
57
+ "数值": "NA",
58
+ "单位": "NA",
59
+ "修饰词": "无" },
60
+ { "术语": "肝功能异常",
61
+ "语义类型": "症状、体征、临床所见",
62
+ "叙述状态": "存在",
63
+ "身体部位": "无",
64
+ "数值": "NA",
65
+ "单位": "NA",
66
+ "修饰词": "无" },
67
+ { "术语": "HBsAg",
68
+ "语义类型": "化学物质、药物",
69
+ "叙述状态": "不存在",
70
+ "身体部位": "NA",
71
+ "数值": "无",
72
+ "单位": "NA",
73
+ "修饰词": "NA" },
74
+ { "术语": "肝脏病理",
75
+ "语义类型": "诊断操作",
76
+ "叙述状态": "存在",
77
+ "身体部位": "无",
78
+ "数值": "无",
79
+ "单位": "NA",
80
+ "修饰词": "NA" },
81
+ { "术语": "病毒性肝炎",
82
+ "语义类型": "疾病、综合征、病理功能",
83
+ "叙述状态": "存在",
84
+ "身体部位": "无",
85
+ "数值": "NA",
86
+ "单位": "NA",
87
+ "修饰词": "无" },
88
+ { "术语": "肝纤维化",
89
+ "语义类型": "疾病、综合征、病理功能",
90
+ "叙述状态": "存在",
91
+ "身体部位": "无",
92
+ "数值": "NA",
93
+ "单位": "NA",
94
+ "修饰词": "无" },
95
+ ]
96
+ ```
97
+
98
+
99
 
100
  ## Citation [optional]
101