You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
expected_answer = "eat a sandwich and sit in Dolores Park on a sunny day.".lower().split()
model_response = "eat a sandwich and sit in Dolores Park on a sunny day.".lower()
score = len(set(model_response.split()).intersection(set(expected_answer))) / len(expected_answer)
print(score)
很奇怪,我觉得是不是哪里出了问题?
expected_answer = "eat a sandwich and sit in Dolores Park on a sunny day.".lower().split()
model_response = "eat a sandwich and sit in Dolores Park on a sunny day.".lower()
score = len(set(model_response.split()).intersection(set(expected_answer))) / len(expected_answer)
print(score)
可能改成
score = len(set(model_response.split()).intersection(set(expected_answer))) / len(set(expected_answer)) ?
The text was updated successfully, but these errors were encountered: