[1-25,26,27] 'DIAT'머릿말 채점 로직 추가
This commit is contained in:
BIN
250909_DIW_2508D_TEST.xlsx
Normal file
BIN
250909_DIW_2508D_TEST.xlsx
Normal file
Binary file not shown.
BIN
250909_DIW_2508D_채점결과.xlsx
Normal file
BIN
250909_DIW_2508D_채점결과.xlsx
Normal file
Binary file not shown.
@@ -284,12 +284,10 @@ class XMLScorer:
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
page1_ptags = pages.get('Page_1', [])
|
page1_ptags = pages.get('Page_1', [])
|
||||||
page2_ptags = pages.get('Page_2', [])
|
header_xpath = ".//HEADER//P"
|
||||||
header_xpath = "//HEADER//P"
|
|
||||||
has_page1_element = has_elements(page1_ptags, header_xpath)
|
has_page1_element = has_elements(page1_ptags, header_xpath)
|
||||||
has_page2_element = has_elements(page2_ptags, header_xpath)
|
|
||||||
|
|
||||||
if not has_page1_element or not has_page2_element:
|
if not has_page1_element:
|
||||||
user_answer = None
|
user_answer = None
|
||||||
self.evaluate_answer(scoring, user_answer, right_answer, points, method="equal")
|
self.evaluate_answer(scoring, user_answer, right_answer, points, method="equal")
|
||||||
continue
|
continue
|
||||||
@@ -1331,8 +1329,8 @@ def main():
|
|||||||
'D',
|
'D',
|
||||||
]
|
]
|
||||||
|
|
||||||
# test_mode = False
|
test_mode = False
|
||||||
test_mode = True #/TEST 폴더 채점시
|
# test_mode = True #/TEST 폴더 채점시
|
||||||
|
|
||||||
output_excel_paths = []
|
output_excel_paths = []
|
||||||
for exam_type in exam_types:
|
for exam_type in exam_types:
|
||||||
|
|||||||
Reference in New Issue
Block a user