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 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - ko
4
+ license: cc-by-nc-4.0
5
+ size_categories:
6
+ - 10K<n<100K
7
+ task_categories:
8
+ - question-answering
9
+ - multiple-choice
10
+ pretty_name: kocem
11
+ dataset_info:
12
+ - config_name: Architectural_Planning
13
+ features:
14
+ - name: id
15
+ dtype: string
16
+ - name: question
17
+ dtype: string
18
+ - name: options
19
+ dtype: string
20
+ - name: answer
21
+ dtype: string
22
+ - name: explanation
23
+ dtype: string
24
+ - name: image
25
+ dtype: image
26
+ - name: question_type
27
+ dtype: string
28
+ - name: field
29
+ dtype: string
30
+ - name: subfield
31
+ dtype: string
32
+ - name: korean_national_technical_certification
33
+ dtype: string
34
+ - name: exam
35
+ dtype: string
36
+ - name: date
37
+ dtype: string
38
+ - name: subject
39
+ dtype: string
40
+ - name: human_acc
41
+ dtype: float32
42
+ - name: difficulty
43
+ dtype: string
44
+ - name: answer_key
45
+ dtype: string
46
+ splits:
47
+ - name: dev
48
+ num_bytes: 12459
49
+ num_examples: 3
50
+ - name: test
51
+ num_bytes: 109752
52
+ num_examples: 431
53
+ - name: val
54
+ num_bytes: 26046
55
+ num_examples: 35
56
+ download_size: 148257
57
+ dataset_size: 60428
58
+ - config_name: Building_System
59
+ features:
60
+ - name: id
61
+ dtype: string
62
+ - name: question
63
+ dtype: string
64
+ - name: options
65
+ dtype: string
66
+ - name: answer
67
+ dtype: string
68
+ - name: explanation
69
+ dtype: string
70
+ - name: image
71
+ dtype: image
72
+ - name: question_type
73
+ dtype: string
74
+ - name: field
75
+ dtype: string
76
+ - name: subfield
77
+ dtype: string
78
+ - name: korean_national_technical_certification
79
+ dtype: string
80
+ - name: exam
81
+ dtype: string
82
+ - name: date
83
+ dtype: string
84
+ - name: subject
85
+ dtype: string
86
+ - name: human_acc
87
+ dtype: float32
88
+ - name: difficulty
89
+ dtype: string
90
+ - name: answer_key
91
+ dtype: string
92
+ splits:
93
+ - name: dev
94
+ num_bytes: 13756
95
+ num_examples: 5
96
+ - name: test
97
+ num_bytes: 93470
98
+ num_examples: 334
99
+ - name: val
100
+ num_bytes: 23211
101
+ num_examples: 40
102
+ download_size: 130437
103
+ dataset_size: 48908
104
+ - config_name: Construction_Management
105
+ features:
106
+ - name: id
107
+ dtype: string
108
+ - name: question
109
+ dtype: string
110
+ - name: options
111
+ dtype: string
112
+ - name: answer
113
+ dtype: string
114
+ - name: explanation
115
+ dtype: string
116
+ - name: image
117
+ dtype: image
118
+ - name: question_type
119
+ dtype: string
120
+ - name: field
121
+ dtype: string
122
+ - name: subfield
123
+ dtype: string
124
+ - name: korean_national_technical_certification
125
+ dtype: string
126
+ - name: exam
127
+ dtype: string
128
+ - name: date
129
+ dtype: string
130
+ - name: subject
131
+ dtype: string
132
+ - name: human_acc
133
+ dtype: float32
134
+ - name: difficulty
135
+ dtype: string
136
+ - name: answer_key
137
+ dtype: string
138
+ splits:
139
+ - name: dev
140
+ num_bytes: 13512
141
+ num_examples: 5
142
+ - name: test
143
+ num_bytes: 117489
144
+ num_examples: 480
145
+ - name: val
146
+ num_bytes: 22125
147
+ num_examples: 32
148
+ download_size: 153126
149
+ dataset_size: 66572
150
+ - config_name: Domain_Reasoning
151
+ splits:
152
+ - name: dev
153
+ num_bytes: 17442
154
+ num_examples: 2
155
+ - name: test
156
+ num_bytes: 49166
157
+ num_examples: 108
158
+ - name: val
159
+ num_bytes: 14919
160
+ num_examples: 4
161
+ download_size: 81527
162
+ dataset_size: 15900
163
+ - config_name: Industry_Jargon
164
+ splits:
165
+ - name: dev
166
+ num_bytes: 12717
167
+ num_examples: 6
168
+ - name: extra
169
+ num_bytes: 7772
170
+ num_examples: 1
171
+ - name: test
172
+ num_bytes: 48852
173
+ num_examples: 576
174
+ - name: val
175
+ num_bytes: 17382
176
+ num_examples: 57
177
+ download_size: 86723
178
+ dataset_size: 92632
179
+ - config_name: Interior
180
+ features:
181
+ - name: id
182
+ dtype: string
183
+ - name: question
184
+ dtype: string
185
+ - name: options
186
+ dtype: string
187
+ - name: answer
188
+ dtype: string
189
+ - name: explanation
190
+ dtype: string
191
+ - name: image
192
+ dtype: image
193
+ - name: question_type
194
+ dtype: string
195
+ - name: field
196
+ dtype: string
197
+ - name: subfield
198
+ dtype: string
199
+ - name: korean_national_technical_certification
200
+ dtype: string
201
+ - name: exam
202
+ dtype: string
203
+ - name: date
204
+ dtype: string
205
+ - name: subject
206
+ dtype: string
207
+ - name: human_acc
208
+ dtype: float32
209
+ - name: difficulty
210
+ dtype: string
211
+ - name: answer_key
212
+ dtype: string
213
+ splits:
214
+ - name: dev
215
+ num_bytes: 13443
216
+ num_examples: 6
217
+ - name: test
218
+ num_bytes: 87305
219
+ num_examples: 342
220
+ - name: val
221
+ num_bytes: 25254
222
+ num_examples: 43
223
+ download_size: 126002
224
+ dataset_size: 50444
225
+ - config_name: Materials
226
+ features:
227
+ - name: id
228
+ dtype: string
229
+ - name: question
230
+ dtype: string
231
+ - name: options
232
+ dtype: string
233
+ - name: answer
234
+ dtype: string
235
+ - name: explanation
236
+ dtype: string
237
+ - name: image
238
+ dtype: image
239
+ - name: question_type
240
+ dtype: string
241
+ - name: field
242
+ dtype: string
243
+ - name: subfield
244
+ dtype: string
245
+ - name: korean_national_technical_certification
246
+ dtype: string
247
+ - name: exam
248
+ dtype: string
249
+ - name: date
250
+ dtype: string
251
+ - name: subject
252
+ dtype: string
253
+ - name: human_acc
254
+ dtype: float32
255
+ - name: difficulty
256
+ dtype: string
257
+ - name: answer_key
258
+ dtype: string
259
+ splits:
260
+ - name: dev
261
+ num_bytes: 15301
262
+ num_examples: 7
263
+ - name: test
264
+ num_bytes: 101600
265
+ num_examples: 398
266
+ - name: val
267
+ num_bytes: 24657
268
+ num_examples: 43
269
+ download_size: 141558
270
+ dataset_size: 57740
271
+ - config_name: Safety_Management
272
+ features:
273
+ - name: id
274
+ dtype: string
275
+ - name: question
276
+ dtype: string
277
+ - name: options
278
+ dtype: string
279
+ - name: answer
280
+ dtype: string
281
+ - name: explanation
282
+ dtype: string
283
+ - name: image
284
+ dtype: image
285
+ - name: question_type
286
+ dtype: string
287
+ - name: field
288
+ dtype: string
289
+ - name: subfield
290
+ dtype: string
291
+ - name: korean_national_technical_certification
292
+ dtype: string
293
+ - name: exam
294
+ dtype: string
295
+ - name: date
296
+ dtype: string
297
+ - name: subject
298
+ dtype: string
299
+ - name: human_acc
300
+ dtype: float32
301
+ - name: difficulty
302
+ dtype: string
303
+ - name: answer_key
304
+ dtype: string
305
+ splits:
306
+ - name: dev
307
+ num_bytes: 15024
308
+ num_examples: 4
309
+ - name: test
310
+ num_bytes: 111459
311
+ num_examples: 353
312
+ - name: val
313
+ num_bytes: 22753
314
+ num_examples: 40
315
+ download_size: 149236
316
+ dataset_size: 51212
317
+ - config_name: Standard_Nomenclature
318
+ splits:
319
+ - name: dev
320
+ num_bytes: 13153
321
+ num_examples: 4
322
+ - name: extra
323
+ num_bytes: 8199530
324
+ num_examples: 41321
325
+ - name: test
326
+ num_bytes: 99615
327
+ num_examples: 444
328
+ - name: val
329
+ num_bytes: 21190
330
+ num_examples: 44
331
+ download_size: 8333488
332
+ dataset_size: 5687096
333
+ - config_name: Structural_Engineering
334
+ features:
335
+ - name: id
336
+ dtype: string
337
+ - name: question
338
+ dtype: string
339
+ - name: options
340
+ dtype: string
341
+ - name: answer
342
+ dtype: string
343
+ - name: explanation
344
+ dtype: string
345
+ - name: image
346
+ dtype: image
347
+ - name: question_type
348
+ dtype: string
349
+ - name: field
350
+ dtype: string
351
+ - name: subfield
352
+ dtype: string
353
+ - name: korean_national_technical_certification
354
+ dtype: string
355
+ - name: exam
356
+ dtype: string
357
+ - name: date
358
+ dtype: string
359
+ - name: subject
360
+ dtype: string
361
+ - name: human_acc
362
+ dtype: float32
363
+ - name: difficulty
364
+ dtype: string
365
+ - name: answer_key
366
+ dtype: string
367
+ splits:
368
+ - name: test
369
+ num_bytes: 54713
370
+ num_examples: 201
371
+ - name: val
372
+ num_bytes: 20339
373
+ num_examples: 25
374
+ download_size: 75052
375
+ dataset_size: 29192
376
+ configs:
377
+ - config_name: Architectural_Planning
378
+ data_files:
379
+ - split: dev
380
+ path: Architectural_Planning/dev_Architectural_Planning.parquet
381
+ - split: test
382
+ path: Architectural_Planning/test_Architectural_Planning.parquet
383
+ - split: val
384
+ path: Architectural_Planning/val_Architectural_Planning.parquet
385
+ - config_name: Building_System
386
+ data_files:
387
+ - split: dev
388
+ path: Building_System/dev_Building_System.parquet
389
+ - split: test
390
+ path: Building_System/test_Building_System.parquet
391
+ - split: val
392
+ path: Building_System/val_Building_System.parquet
393
+ - config_name: Construction_Management
394
+ data_files:
395
+ - split: dev
396
+ path: Construction_Management/dev_Construction_Management.parquet
397
+ - split: test
398
+ path: Construction_Management/test_Construction_Management.parquet
399
+ - split: val
400
+ path: Construction_Management/val_Construction_Management.parquet
401
+ - config_name: Domain_Reasoning
402
+ data_files:
403
+ - split: dev
404
+ path: Domain_Reasoning/dev_Domain_Reasoning.parquet
405
+ - split: test
406
+ path: Domain_Reasoning/test_Domain_Reasoning.parquet
407
+ - split: val
408
+ path: Domain_Reasoning/val_Domain_Reasoning.parquet
409
+ - config_name: Interior
410
+ data_files:
411
+ - split: dev
412
+ path: Interior/dev_Interior.parquet
413
+ - split: test
414
+ path: Interior/test_Interior.parquet
415
+ - split: val
416
+ path: Interior/val_Interior.parquet
417
+ - config_name: Industry_Jargon
418
+ data_files:
419
+ - split: dev
420
+ path: Industry_Jargon/dev_Industry_Jargon.parquet
421
+ - split: extra
422
+ path: Industry_Jargon/extra_Industry_Jargon.parquet
423
+ - split: test
424
+ path: Industry_Jargon/test_Industry_Jargon.parquet
425
+ - split: val
426
+ path: Industry_Jargon/val_Industry_Jargon.parquet
427
+ - config_name: Materials
428
+ data_files:
429
+ - split: dev
430
+ path: Materials/dev_Materials.parquet
431
+ - split: test
432
+ path: Materials/test_Materials.parquet
433
+ - split: val
434
+ path: Materials/val_Materials.parquet
435
+ - config_name: Safety_Management
436
+ data_files:
437
+ - split: dev
438
+ path: Safety_Management/dev_Safety_Management.parquet
439
+ - split: test
440
+ path: Safety_Management/test_Safety_Management.parquet
441
+ - split: val
442
+ path: Safety_Management/val_Safety_Management.parquet
443
+ - config_name: Standard_Nomenclature
444
+ data_files:
445
+ - split: dev
446
+ path: Standard_Nomenclature/dev_Standard_Nomenclature.parquet
447
+ - split: extra
448
+ path: Standard_Nomenclature/extra_Standard_Nomenclature.parquet
449
+ - split: test
450
+ path: Standard_Nomenclature/test_Standard_Nomenclature.parquet
451
+ - split: val
452
+ path: Standard_Nomenclature/val_Standard_Nomenclature.parquet
453
+ - config_name: Structural_Engineering
454
+ data_files:
455
+ - split: dev
456
+ path: Structural_Engineering/dev_Structural_Engineering.parquet
457
+ - split: test
458
+ path: Structural_Engineering/test_Structural_Engineering.parquet
459
+ - split: val
460
+ path: Structural_Engineering/val_Structural_Engineering.parquet
461
+ tags:
462
+ - question-answering
463
+ - multiple-choice
464
+ - technical-certification
465
+ - architecture
466
+ - engineering
467
+ - construction
468
+ ---
469
+
470
+
471
+
472
+
473
+
474
+ The KoCEM 1.0 is the original implementation of the dataset from the paper: ...
475
+ The benchmark is a collection of ... instances across 6 tasks: field_words, standard_nomenclature, domain_knowledge, ....
476
+ To replicate the studies from the paper, see below.
477
+
478
+
479
+ ## Dataset Overview
480
+
481
+ | Task | Instances | Version | Explanation |
482
+ |-----------------------------|-----------|---------|--------------------------------------------------------------------------------|
483
+ | industry_jargon | 657 | v1.0 | Multiple-choice questions about the Jargon of Construction Management from ... |
484
+ | standard_nomenclature | 41,813 | v1.0 | Multiple-choice questions about Standard Nomenclature from ... |
485
+ | domain_knowledge | 20,519 | v1.0 | Multiple-choice questions about Domain Knowledge from ... |
486
+ | domain_reasoning | ... | v1.0 | Multiple-choice questions about Domain Knowledge from ... |
487
+ | drawing_interpretation | ... | v1.0 | Multiple-choice questions about Domain Knowledge from ... |
488
+ | comprehensive_reasoning | ... | v1.0 | Multiple-choice questions about Domain Knowledge from ... |
489
+ | **Total** | **...** | | |
490
+
491
+
492
+ ## Evaluation Code
493
+
494
+ To perform the following process, installation of [this package](https://github.com/EleutherAI/lm-evaluation-harness) must be completed in advance.
495
+
496
+ ### Utilizing Commercial API
497
+ ```
498
+ export OPENAI_API_KEY=YOUR_KEY_HERE
499
+ lm_eval --model openai-completions \
500
+ --model_args model=davinci-002 \
501
+ --tasks kocem_standard_nomenclature \
502
+ --log_samples \
503
+ --output_path results
504
+ ```
505
+
506
+ ### Evaluating with HF SDK
507
+ ```
508
+ lm_eval --model hf \
509
+ --model_args pretrained=EleutherAI/polyglot-ko-12.8b \
510
+ --tasks kocem_standard_nomenclature \
511
+ --device cuda:0 \
512
+ --batch_size auto:4 \
513
+ --log_samples \
514
+ --output_path results
515
+ ```
516
+
517
+ ## Contact
518
+
519
+ - pikaybh@snu.ac.kr