From 9c7f3131a331fcc79415c451ad9f208aa443efab Mon Sep 17 00:00:00 2001 From: yujinni <86652449+yujin37@users.noreply.github.com> Date: Tue, 31 Oct 2023 02:30:39 +0900 Subject: [PATCH] =?UTF-8?q?fix=20:=20Model=20updated=20|=20=EC=9C=A0?= =?UTF-8?q?=EC=82=AC=EB=8F=84=20=EC=A0=90=EC=88=98=20=EA=B3=84=EC=82=B0=20?= =?UTF-8?q?=EC=8B=9C=20=EC=9E=84=EA=B3=84=EA=B0=92=20=EC=84=A4=EC=A0=95.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Model/app.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Model/app.py b/Model/app.py index 095610c..63fafe1 100644 --- a/Model/app.py +++ b/Model/app.py @@ -226,6 +226,8 @@ def ExpressShort(sentence, answer): def calculate_score53(sim, sp, le, ex): #53번 기준 30점 #유사도 20점, 맞춤법 5점, 글자 수 2점, 표현 점수 3점 + if sim > 1: + sim = 1 if sp == 0: sp_score = 5 else: @@ -239,6 +241,8 @@ def calculate_score53(sim, sp, le, ex): result = round(20 - sim*20,2) + sp_score + le + ex_score return result def calculate_score(num, sim, sp, ex): + if sim > 1: + sim = 1 #51번 if num == 51: #print('51번 채점중')