Adapting commited on
Commit
7528027
1 Parent(s): b29aca7

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +25 -0
README.md CHANGED
@@ -12,6 +12,31 @@ data_files = {'train': 'train.csv', 'test': 'test.csv', 'dev': 'test.csv'}
12
  dataset = load_dataset('Adapting/chinese_biomedical_NER_dataset', data_files=data_files)
13
  ```
14
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  # 3 Citation
16
  To use this dataset in your work please cite:
17
 
 
12
  dataset = load_dataset('Adapting/chinese_biomedical_NER_dataset', data_files=data_files)
13
  ```
14
 
15
+ ## Definition of the tagset
16
+ ```python
17
+ tag_set = [
18
+ 'B_手术',
19
+ 'I_疾病和诊断',
20
+ 'B_症状',
21
+ 'I_解剖部位',
22
+ 'I_药物',
23
+ 'B_影像检查',
24
+ 'B_药物',
25
+ 'B_疾病和诊断',
26
+ 'I_影像检查',
27
+ 'I_手术',
28
+ 'B_解剖部位',
29
+ 'O',
30
+ 'B_实验室检验',
31
+ 'I_症状',
32
+ 'I_实验室检验'
33
+ ]
34
+
35
+ tag2id = lambda tag: tag_set.index(tag)
36
+ id2tag = lambda id: tag_set[id]
37
+ ```
38
+
39
+
40
  # 3 Citation
41
  To use this dataset in your work please cite:
42