(2-29) 영단어 오타감점 제외

This commit is contained in:
2025-03-31 18:11:38 +09:00
parent c9b8df4310
commit ccce357faa
2 changed files with 322 additions and 11 deletions

View File

@@ -335,14 +335,14 @@ class XMLScorer:
input_text = [re.sub(r'\d+\.\s*|-', '', text) for text in input_text]
input_text_origin = [re.sub(r'\d+\.\s*|-', '', text) for text in input_text_origin]
# ignore_word = self.scoring_criteria["2-29"]['path'].split("'")[1]
# print(f"ignore_word: {ignore_word}")
# # 특정 단어 제거
# # 오타와 누락의 경우만 판단하면 정상작동하지만
# # 추가 된 단어의 경우를 채점기준에 추가하면 정확하게 채점 되지 않을 수 있음
# # [정답] Hybrid [실제작성]
# input_text = [text.replace(ignore_word, '') for text in input_text]
# input_text_origin = [text.replace(ignore_word, '') for text in input_text_origin]
ignore_word = self.scoring_criteria["2-29"]['path'].split("'")[1]
print(f"ignore_word: {ignore_word}")
# 특정 단어 제거
# 오타와 누락의 경우만 판단하면 정상작동하지만
# 추가 된 단어의 경우를 채점기준에 추가하면 정확하게 채점 되지 않을 수 있음
# [정답] Hybrid [실제작성]
input_text = [text.replace(ignore_word, '') for text in input_text]
input_text_origin = [text.replace(ignore_word, '') for text in input_text_origin]
# 리스트를 하나의 문자열로 변경
input_text_str = ''.join(input_text)
@@ -548,10 +548,10 @@ def main():
exam_types = [
# 'A',
'B',
# 'C',
'C',
]
# test_mode = False
test_mode = True
test_mode = False
# test_mode = True
output_excel_paths = []
for exam_type in exam_types: