[1-30] 하이퍼링크 채점 기준 변경
This commit is contained in:
@@ -1084,6 +1084,11 @@ class XMLScorer:
|
||||
url_tags = root.xpath(xpath) if xpath else []
|
||||
print("hyperlink url_tags:", url_tags)
|
||||
|
||||
if url_tags is None or len(url_tags) == 0:
|
||||
# 해당하는 CHAR 태그가 없는 경우 오답처리
|
||||
self.evaluate_answer(scoring, False, right_answer, 0)
|
||||
continue
|
||||
|
||||
has_hyperlink = False # FIELDBEGIN/FIELDEND 둘 다 존재하는 경우만 True
|
||||
|
||||
for url_tag in url_tags:
|
||||
@@ -1468,14 +1473,14 @@ def main():
|
||||
|
||||
# 채점하고자 하는 유형은 주석 해제
|
||||
exam_types = [
|
||||
# 'A',
|
||||
'A',
|
||||
# 'B',
|
||||
'C',
|
||||
# 'C',
|
||||
# 'D',
|
||||
]
|
||||
|
||||
test_mode = False
|
||||
# test_mode = True #/TEST 폴더 채점시
|
||||
# test_mode = False
|
||||
test_mode = True #/TEST 폴더 채점시
|
||||
|
||||
output_excel_paths = []
|
||||
for exam_type in exam_types:
|
||||
|
||||
Reference in New Issue
Block a user