2503회 채점기준표 작성 및 정답파일 채점

This commit is contained in:
2025-03-27 14:30:55 +09:00
parent 0e5ad2a4b3
commit abc500dfa3
13 changed files with 2794 additions and 161 deletions

View File

@@ -531,38 +531,25 @@ class XMLScorer:
def main():
# scoring_criteria_path = r'./DIW.json'
scoring_criteria_path = r'./DIW_2503A.json'
# scoring_criteria_path = r'./DIW_2503B.json'
# scoring_criteria_path = r'./DIW_2503C.json'
# scoring_criteria_path = r'./DIW_2503D.json'
# scoring_criteria_path = r'./DIW_2503E.json'
# 시험회차 및 유형
exam_round = '2503'
# exam_type = 'A'
# exam_type = 'B'
exam_type = 'C'
# exam_type = 'D'
# exam_type = 'E'
scoring_criteria_path = f'./DIW_{exam_round}{exam_type}.json'
# xml(hml)파일 디렉토리 경로
# xml_directory = r'./output'
xml_directory = r'./output/A/DIW'
# xml_directory = r'./output/B/DIW'
# xml_directory = r'./output/C/DIW'
# xml_directory = r'./output/D/DIW'
# xml_directory = r'./output/E/DIW'
# 오탈자 체크를 위한 정답 파일 경로
# answer_path = r'./output/정답.hml'
answer_path = r'./output/A/DIW/DIW_2503A.hml'
# answer_path = r'./output/B/DIW/DIW_2503B.hml'
# answer_path = r'./output/C/DIW/DIW_2503C.hml'
# answer_path = r'./output/D/DIW/DIW_2503D.hml'
# answer_path = r'./output/E/DIW/DIW_2503E.hml'
xml_directory = f'./output/{exam_type}/DIW'
timestamp = datetime.now().strftime("%y%m%d")
# 엑셀 파일명 (비어있으면 자동생성)
output_path = f"{timestamp}_DIW_2503A_채점결과.xlsx"
# output_path = f"{timestamp}_DIW_2503B_채점결과.xlsx"
# output_path = f"{timestamp}_DIW_2503C_채점결과.xlsx"
# output_path = f"{timestamp}_DIW_2503D_채점결과.xlsx"
# output_path = f"{timestamp}_DIW_2503E_채점결과.xlsx"
# 오탈자 체크를 위한 정답 파일 경로
answer_path = f'./output/{exam_type}/DIW/DIW_{exam_round}{exam_type}.hml'
# 엑셀 파일명 (비어있으면 자동생성)
timestamp = datetime.now().strftime("%y%m%d")
output_path = f"{timestamp}_DIW_{exam_round}{exam_type}_채점결과.xlsx"
# 채점 클래스 초기화
scorer = XMLScorer(scoring_criteria_path)