Upload 2 files
Browse files
README.md
CHANGED
@@ -1,67 +1,67 @@
|
|
1 |
---
|
2 |
dataset_info:
|
3 |
features:
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
config_name: e3c
|
34 |
splits:
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
download_size: 230213492
|
66 |
dataset_size: 17879301
|
67 |
---
|
@@ -92,4 +92,4 @@ information about clinical entities based on medical taxonomies, to be used for
|
|
92 |
url = {https://uts.nlm.nih.gov/uts/umls/home},
|
93 |
year = {2021},
|
94 |
}
|
95 |
-
```
|
|
|
1 |
---
|
2 |
dataset_info:
|
3 |
features:
|
4 |
+
- name: text
|
5 |
+
dtype: string
|
6 |
+
- name: tokens
|
7 |
+
sequence: string
|
8 |
+
- name: tokens_offsets
|
9 |
+
sequence:
|
10 |
+
sequence: int32
|
11 |
+
- name: clinical_entity_tags
|
12 |
+
sequence:
|
13 |
+
class_label:
|
14 |
+
names:
|
15 |
+
"0": O
|
16 |
+
"1": B-CLINENTITY
|
17 |
+
"2": I-CLINENTITY
|
18 |
+
- name: temporal_information_tags
|
19 |
+
sequence:
|
20 |
+
class_label:
|
21 |
+
names:
|
22 |
+
"0": O
|
23 |
+
"1": B-EVENT
|
24 |
+
"2": B-ACTOR
|
25 |
+
"3": B-BODYPART
|
26 |
+
"4": B-TIMEX3
|
27 |
+
"5": B-RML
|
28 |
+
"6": I-EVENT
|
29 |
+
"7": I-ACTOR
|
30 |
+
"8": I-BODYPART
|
31 |
+
"9": I-TIMEX3
|
32 |
+
"10": I-RML
|
33 |
config_name: e3c
|
34 |
splits:
|
35 |
+
- name: en.layer1
|
36 |
+
num_bytes: 1280534
|
37 |
+
num_examples: 1520
|
38 |
+
- name: en.layer2
|
39 |
+
num_bytes: 2566638
|
40 |
+
num_examples: 2873
|
41 |
+
- name: es.layer1
|
42 |
+
num_bytes: 1262006
|
43 |
+
num_examples: 1134
|
44 |
+
- name: es.layer2
|
45 |
+
num_bytes: 2524461
|
46 |
+
num_examples: 2347
|
47 |
+
- name: eu.layer1
|
48 |
+
num_bytes: 1537670
|
49 |
+
num_examples: 3126
|
50 |
+
- name: eu.layer2
|
51 |
+
num_bytes: 853766
|
52 |
+
num_examples: 1594
|
53 |
+
- name: fr.layer1
|
54 |
+
num_bytes: 1275362
|
55 |
+
num_examples: 1109
|
56 |
+
- name: fr.layer2
|
57 |
+
num_bytes: 2581993
|
58 |
+
num_examples: 2389
|
59 |
+
- name: it.layer1
|
60 |
+
num_bytes: 1299388
|
61 |
+
num_examples: 1146
|
62 |
+
- name: it.layer2
|
63 |
+
num_bytes: 2697483
|
64 |
+
num_examples: 2436
|
65 |
download_size: 230213492
|
66 |
dataset_size: 17879301
|
67 |
---
|
|
|
92 |
url = {https://uts.nlm.nih.gov/uts/umls/home},
|
93 |
year = {2021},
|
94 |
}
|
95 |
+
```
|
e3c.py
CHANGED
@@ -303,12 +303,9 @@ class E3C(datasets.GeneratorBasedBuilder):
|
|
303 |
"TIMEX3",
|
304 |
"RML",
|
305 |
]:
|
306 |
-
if len(content[entity_type]) != 0
|
307 |
for entities in list(
|
308 |
-
|
309 |
-
lambda entity: sentence[0] <= entity[0] <= sentence[1],
|
310 |
-
content[entity_type],
|
311 |
-
)
|
312 |
):
|
313 |
annotated_tokens = [
|
314 |
idx_token
|
|
|
303 |
"TIMEX3",
|
304 |
"RML",
|
305 |
]:
|
306 |
+
if len(content[entity_type]) != 0:
|
307 |
for entities in list(
|
308 |
+
content[entity_type],
|
|
|
|
|
|
|
309 |
):
|
310 |
annotated_tokens = [
|
311 |
idx_token
|