오탈자 검사 시 특정 형식 제거(1., 2., - 등 )

This commit is contained in:
2025-01-21 14:06:48 +09:00
parent 2496d63417
commit 165da914c9

View File

@@ -296,6 +296,11 @@ class XMLScorer:
input_text_origin = [text.replace(' ', '') for text in input_text_origin]
# 숫자와 특정 형식 제거 (예: 1., 2., 3., -)
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]
# 리스트를 하나의 문자열로 변경
input_text_str = ''.join(input_text)
input_text_origin_str = ''.join(input_text_origin)