qanastek commited on
Commit
1ea843b
·
1 Parent(s): 28eb071

Upload PxCorpus.py

Browse files
Files changed (1) hide show
  1. PxCorpus.py +6 -8
PxCorpus.py CHANGED
@@ -50,16 +50,14 @@ class PxCorpus(datasets.GeneratorBasedBuilder):
50
  {
51
  "id": datasets.Value("string"),
52
  "text": datasets.Value("string"),
53
- "label": datasets.Value("string"),
54
- # "label": datasets.features.ClassLabel(
55
- # names=["medical_prescription", "negate", "none", "replace"],
56
- # ),
57
  "tokens": datasets.Sequence(datasets.Value("string")),
58
  "ner_tags": datasets.Sequence(
59
- datasets.Value("string"),
60
- # datasets.features.ClassLabel(
61
- # names=["O", "I-RML"],
62
- # ),
63
  ),
64
  }
65
  )
 
50
  {
51
  "id": datasets.Value("string"),
52
  "text": datasets.Value("string"),
53
+ "label": datasets.features.ClassLabel(
54
+ names=["medical_prescription", "negate", "none", "replace"],
55
+ ),
 
56
  "tokens": datasets.Sequence(datasets.Value("string")),
57
  "ner_tags": datasets.Sequence(
58
+ datasets.features.ClassLabel(
59
+ names=['O', 'B-A', 'B-cma_event', 'B-d_dos_form', 'B-d_dos_form_ext', 'B-d_dos_up', 'B-d_dos_val', 'B-dos_cond', 'B-dos_uf', 'B-dos_val', 'B-drug', 'B-dur_ut', 'B-dur_val', 'B-fasting', 'B-freq_days', 'B-freq_int_v1', 'B-freq_int_v1_ut', 'B-freq_int_v2', 'B-freq_int_v2_ut', 'B-freq_startday', 'B-freq_ut', 'B-freq_val', 'B-inn', 'B-max_unit_uf', 'B-max_unit_ut', 'B-max_unit_val', 'B-min_gap_ut', 'B-min_gap_val', 'B-qsp_ut', 'B-qsp_val', 'B-re_ut', 'B-re_val', 'B-rhythm_hour', 'B-rhythm_perday', 'B-rhythm_rec_ut', 'B-rhythm_rec_val', 'B-rhythm_tdte', 'B-roa', 'I-cma_event', 'I-d_dos_form', 'I-d_dos_form_ext', 'I-d_dos_up', 'I-d_dos_val', 'I-dos_cond', 'I-dos_uf', 'I-dos_val', 'I-drug', 'I-fasting', 'I-freq_startday', 'I-inn', 'I-rhythm_tdte', 'I-roa'],
60
+ ),
 
61
  ),
62
  }
63
  )