Datasets:

Modalities:
Text
Formats:
parquet
Size:
< 1K
ArXiv:
License:
mkieffer commited on
Commit
7ca5114
·
verified ·
1 Parent(s): d7cee49

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +50 -0
README.md CHANGED
@@ -73,9 +73,19 @@ With the following distribution
73
 
74
  Note: Both the original SIMORD dataset and this upload use the split name `test1` instead of dev/validation (even though the file is `dev.json`) and `test2` instead of test (even though the file is `test.json`), since both were used as test sets.
75
 
 
 
 
 
 
 
 
 
76
 
77
  ### Dataset Changes
78
 
 
 
79
  The SIMORD dataset is derived from both [ACI-Bench](https://github.com/wyim/aci-bench) and [PriMock57](https://github.com/babylonhealth/primock57).
80
 
81
  While PriMock57 doesn't contain any explicit data splits, ACI-Bench contains five splits: `train`, `valid`, `test1`, `test2`, and `test3`. As discussed in an [open HF issue](https://huggingface.co/datasets/microsoft/SIMORD/discussions/2), these splits were not respected when being merged into SIMORD.
@@ -116,6 +126,46 @@ After reallocation, the new splits contain the following counts:
116
  | `test1` | 90 | 0 | 7 | 24 | 19 | 17 | 23 |
117
  | `test2` | 92 | 0 | 13 | 15 | 21 | 23 | 20 |
118
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
119
 
120
  ### Direct Use
121
 
 
73
 
74
  Note: Both the original SIMORD dataset and this upload use the split name `test1` instead of dev/validation (even though the file is `dev.json`) and `test2` instead of test (even though the file is `test.json`), since both were used as test sets.
75
 
76
+ Each sample contains the following fields:
77
+ - `id`: unique sample identifier
78
+ - `transcript`: the full doctor-patient conversation text
79
+ - `enumerated_transcript`: the transcript with 1-based line numbers before each speaker turn (e.g., "1 [doctor] hello\n2 [patient] hi")
80
+ - `orders`: list of expected medical orders, each with `order_type`, `description`, `reason`, and `provenance` (line numbers in enumerated_transcript)
81
+
82
+ Note: The original SIMORD dataset only contains `id` and `expected_orders`, requiring users to separately load transcripts from ACI-Bench or PriMock57. This version includes the transcripts directly and fixes provenance line numbers to match the enumerated_transcript format.
83
+
84
 
85
  ### Dataset Changes
86
 
87
+ #### Data Splits
88
+
89
  The SIMORD dataset is derived from both [ACI-Bench](https://github.com/wyim/aci-bench) and [PriMock57](https://github.com/babylonhealth/primock57).
90
 
91
  While PriMock57 doesn't contain any explicit data splits, ACI-Bench contains five splits: `train`, `valid`, `test1`, `test2`, and `test3`. As discussed in an [open HF issue](https://huggingface.co/datasets/microsoft/SIMORD/discussions/2), these splits were not respected when being merged into SIMORD.
 
126
  | `test1` | 90 | 0 | 7 | 24 | 19 | 17 | 23 |
127
  | `test2` | 92 | 0 | 13 | 15 | 21 | 23 | 20 |
128
 
129
+ #### Provenance Corrections
130
+
131
+ The `orders` column includes a `reason` field within the JSON object, which is a typically a short excerpt from the `transcript` justifying the order. The JSON object also includes a `provenance` field, which is a list of line number indices where the different text spans in the `reason` field are extracted from.
132
+
133
+ In the original SIMORD dataset, the provenance line numbers usually exceed the total number of speaker turns in the transcript. This likely reflects some preprocessing scheme used prior to publication, or perhaps has something to do with prepending prompts before each transcript. In any case, to align the provenances to the raw transcripts, we:
134
+
135
+ 1. Use the `reason` field (which contains text extracted from the transcript) to find the all relevant line numbers
136
+ 2. Calculate the offset between the original provenance and the actual line numbers
137
+ 3. Shift all provenances to match the new `enumerated_transcript` line numbers
138
+
139
+ For example, `acibench_virtassist_train_D2N010` only has 61 speaker turns, but the original dataset had `provenance` values like [91, 97], which are out of range.
140
+
141
+ ```json
142
+ {
143
+ "description": "amoxicillin 500 milligrams three times a day 10 day",
144
+ "order_type": "medication",
145
+ "provenance": [91, 97],
146
+ "reason": "positive for strep"
147
+ }
148
+ ```
149
+
150
+ However, we see that this particular order corresponds to text in line 45 of the transcript.
151
+
152
+ > ...
153
+ > 45 [doctor] ..., uh , **positive for strep** . so i think we have some reasons...
154
+ > ...
155
+ > 51 [doctor] yes it is , yeah .
156
+ > ...
157
+
158
+ So, the offset is 45 - 91 = -46, and the `provenance` shifts from [91, 97] to [45, 51]:
159
+
160
+ ```json
161
+ {
162
+ "description": "amoxicillin 500 milligrams three times a day 10 day",
163
+ "order_type": "medication",
164
+ "provenance": [45, 51],
165
+ "reason": "positive for strep"
166
+ }
167
+ ```
168
+
169
 
170
  ### Direct Use
171