singh-aditya commited on
Commit
80bc211
1 Parent(s): 0428a9f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +105 -1
README.md CHANGED
@@ -17,10 +17,114 @@ size_categories:
17
 
18
  ## Uses
19
  ```Python
 
20
  from datasets import load_dataset
21
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
  # load the data
23
- medical_ner_data = load_dataset("singh-aditya/MACCROBAT-biomedical-ner", data_files="MACCROBAT2020-V2.json", field="data")
24
  print(medical_ner_data)
25
  ```
26
 
 
17
 
18
  ## Uses
19
  ```Python
20
+ import datasets
21
  from datasets import load_dataset
22
 
23
+ features_data = datasets.Features(
24
+ {
25
+ "full_text": Value(dtype="string"),
26
+ "ner_info": [
27
+ {
28
+ "text": Value(dtype="string"),
29
+ "label": Value(dtype="string"),
30
+ "start": Value(dtype="int64"),
31
+ "end": Value(dtype="int64"),
32
+ }
33
+ ],
34
+ "tokens": Sequence(Value(dtype="string")),
35
+ "ner_labels": Sequence(
36
+ ClassLabel(
37
+ names=[
38
+ "O",
39
+ "B-ACTIVITY",
40
+ "I-ACTIVITY",
41
+ "I-ADMINISTRATION",
42
+ "B-ADMINISTRATION",
43
+ "B-AGE",
44
+ "I-AGE",
45
+ "I-AREA",
46
+ "B-AREA",
47
+ "B-BIOLOGICAL_ATTRIBUTE",
48
+ "I-BIOLOGICAL_ATTRIBUTE",
49
+ "I-BIOLOGICAL_STRUCTURE",
50
+ "B-BIOLOGICAL_STRUCTURE",
51
+ "B-CLINICAL_EVENT",
52
+ "I-CLINICAL_EVENT",
53
+ "B-COLOR",
54
+ "I-COLOR",
55
+ "I-COREFERENCE",
56
+ "B-COREFERENCE",
57
+ "B-DATE",
58
+ "I-DATE",
59
+ "I-DETAILED_DESCRIPTION",
60
+ "B-DETAILED_DESCRIPTION",
61
+ "I-DIAGNOSTIC_PROCEDURE",
62
+ "B-DIAGNOSTIC_PROCEDURE",
63
+ "I-DISEASE_DISORDER",
64
+ "B-DISEASE_DISORDER",
65
+ "B-DISTANCE",
66
+ "I-DISTANCE",
67
+ "B-DOSAGE",
68
+ "I-DOSAGE",
69
+ "I-DURATION",
70
+ "B-DURATION",
71
+ "I-FAMILY_HISTORY",
72
+ "B-FAMILY_HISTORY",
73
+ "B-FREQUENCY",
74
+ "I-FREQUENCY",
75
+ "I-HEIGHT",
76
+ "B-HEIGHT",
77
+ "B-HISTORY",
78
+ "I-HISTORY",
79
+ "I-LAB_VALUE",
80
+ "B-LAB_VALUE",
81
+ "I-MASS",
82
+ "B-MASS",
83
+ "I-MEDICATION",
84
+ "B-MEDICATION",
85
+ "I-NONBIOLOGICAL_LOCATION",
86
+ "B-NONBIOLOGICAL_LOCATION",
87
+ "I-OCCUPATION",
88
+ "B-OCCUPATION",
89
+ "B-OTHER_ENTITY",
90
+ "I-OTHER_ENTITY",
91
+ "B-OTHER_EVENT",
92
+ "I-OTHER_EVENT",
93
+ "I-OUTCOME",
94
+ "B-OUTCOME",
95
+ "I-PERSONAL_BACKGROUND",
96
+ "B-PERSONAL_BACKGROUND",
97
+ "B-QUALITATIVE_CONCEPT",
98
+ "I-QUALITATIVE_CONCEPT",
99
+ "I-QUANTITATIVE_CONCEPT",
100
+ "B-QUANTITATIVE_CONCEPT",
101
+ "B-SEVERITY",
102
+ "I-SEVERITY",
103
+ "B-SEX",
104
+ "I-SEX",
105
+ "B-SHAPE",
106
+ "I-SHAPE",
107
+ "B-SIGN_SYMPTOM",
108
+ "I-SIGN_SYMPTOM",
109
+ "B-SUBJECT",
110
+ "I-SUBJECT",
111
+ "B-TEXTURE",
112
+ "I-TEXTURE",
113
+ "B-THERAPEUTIC_PROCEDURE",
114
+ "I-THERAPEUTIC_PROCEDURE",
115
+ "I-TIME",
116
+ "B-TIME",
117
+ "B-VOLUME",
118
+ "I-VOLUME",
119
+ "I-WEIGHT",
120
+ "B-WEIGHT",
121
+ ]
122
+ )
123
+ ),
124
+ }
125
+ )
126
  # load the data
127
+ medical_ner_data = load_dataset("singh-aditya/MACCROBAT-biomedical-ner", field="data", features=features_data)
128
  print(medical_ner_data)
129
  ```
130