2503회 A형 채점기준표 작성
This commit is contained in:
33
score5.py
33
score5.py
@@ -395,7 +395,8 @@ class XMLScorer:
|
||||
# 누락된 텍스트만 계산해 점수 차감
|
||||
# temp = 40 - min(len(missing_list)*2, 40)
|
||||
|
||||
temp = 40 - min(len(error_missing_list)*2, 40)
|
||||
# 2503회 기준 오타 1개당 [2점]->[1점] 차감
|
||||
temp = 40 - min(len(error_missing_list)*1, 40)
|
||||
|
||||
self.set_typo_score(temp)
|
||||
|
||||
@@ -531,11 +532,11 @@ class XMLScorer:
|
||||
|
||||
def main():
|
||||
# scoring_criteria_path = r'./DIW.json'
|
||||
scoring_criteria_path = r'./DIW_2502A.json'
|
||||
# scoring_criteria_path = r'./DIW_2502B.json'
|
||||
# scoring_criteria_path = r'./DIW_2502C.json'
|
||||
# scoring_criteria_path = r'./DIW_2502D.json'
|
||||
# scoring_criteria_path = r'./DIW_2502E.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'
|
||||
|
||||
# xml(hml)파일 디렉토리 경로
|
||||
# xml_directory = r'./output'
|
||||
@@ -548,19 +549,19 @@ def main():
|
||||
|
||||
# 오탈자 체크를 위한 정답 파일 경로
|
||||
# answer_path = r'./output/정답.hml'
|
||||
answer_path = r'./output/A/DIW/DIW_2502A.hml'
|
||||
# answer_path = r'./output/B/DIW/DIW_2502B.hml'
|
||||
# answer_path = r'./output/C/DIW/DIW_2502C.hml'
|
||||
# answer_path = r'./output/D/DIW/DIW_2502D.hml'
|
||||
# answer_path = r'./output/E/DIW/DIW_2502E.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'
|
||||
|
||||
timestamp = datetime.now().strftime("%y%m%d")
|
||||
# 엑셀 파일명 (비어있으면 자동생성)
|
||||
output_path = f"{timestamp}_DIW_2502A_채점결과.xlsx"
|
||||
# output_path = f"{timestamp}_DIW_2502B_채점결과.xlsx"
|
||||
# output_path = f"{timestamp}_DIW_2502C_채점결과.xlsx"
|
||||
# output_path = f"{timestamp}_DIW_2502D_채점결과.xlsx"
|
||||
# output_path = f"{timestamp}_DIW_2502E_채점결과.xlsx"
|
||||
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"
|
||||
|
||||
# 채점 클래스 초기화
|
||||
scorer = XMLScorer(scoring_criteria_path)
|
||||
|
||||
Reference in New Issue
Block a user