test.py HWP와 HWPX파일 모두 변환하도록 적용\
This commit is contained in:
29
score5.py
29
score5.py
@@ -349,6 +349,7 @@ class XMLScorer:
|
||||
|
||||
# 차이점을 정리하여 result_diff에 저장
|
||||
result_diff = []
|
||||
|
||||
# 감점을 위한 누락 된 단어만 따로 리스트로 저장
|
||||
missing_list = []
|
||||
|
||||
@@ -530,36 +531,36 @@ class XMLScorer:
|
||||
|
||||
def main():
|
||||
# scoring_criteria_path = r'./DIW.json'
|
||||
# scoring_criteria_path = r'./DIW_2502A.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_2502E.json'
|
||||
|
||||
# xml(hml)파일 디렉토리 경로
|
||||
# xml_directory = r'./output'
|
||||
# xml_directory = r'./output/A'
|
||||
# xml_directory = r'./output/B'
|
||||
# xml_directory = r'./output/C'
|
||||
# xml_directory = r'./output/D'
|
||||
xml_directory = r'./output/E'
|
||||
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_2502A.hml'
|
||||
# answer_path = r'./output/B/DIW_2502B.hml'
|
||||
# answer_path = r'./output/C/DIW_2502C.hml'
|
||||
# answer_path = r'./output/D/DIW_2502D.hml'
|
||||
answer_path = r'./output/E/DIW_2502E.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'
|
||||
|
||||
timestamp = datetime.now().strftime("%y%m%d")
|
||||
# 엑셀 파일명 (비어있으면 자동생성)
|
||||
# output_path = f"{timestamp}_DIW_2502A_채점결과.xlsx"
|
||||
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_2502E_채점결과.xlsx"
|
||||
|
||||
# 채점 클래스 초기화
|
||||
scorer = XMLScorer(scoring_criteria_path)
|
||||
|
||||
Reference in New Issue
Block a user