Skip to content

Commit

Permalink
fix : Model updated | 유사도 점수 계산 시 임계값 설정.
Browse files Browse the repository at this point in the history
  • Loading branch information
yujin37 committed Oct 30, 2023
1 parent 6a9e2d5 commit 9c7f313
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Model/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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번 채점중')
Expand Down

0 comments on commit 9c7f313

Please sign in to comment.