[1-25,26,27] 'DIAT'머릿말 채점 로직 추가

This commit is contained in:
2025-09-09 16:09:20 +09:00
parent 8ae46ef54d
commit 4c5854e8be
3 changed files with 4 additions and 6 deletions

BIN
250909_DIW_2508D_TEST.xlsx Normal file

Binary file not shown.

Binary file not shown.

View File

@@ -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: