Add misspelled pairs to writing grading.

This commit is contained in:
Cristiano Ferreira
2024-01-03 17:40:48 +00:00
parent 9b3997f65e
commit 63823a01de
3 changed files with 30 additions and 1 deletions

2
app.py
View File

@@ -204,6 +204,7 @@ def grade_writing_task_1():
response = make_openai_instruct_call(GPT_3_5_TURBO_INSTRUCT, message, token_count,
["comment"],
GEN_QUESTION_TEMPERATURE)
response['misspelled_pairs'] = get_misspelled_pairs(answer)
return response
else:
return {
@@ -256,6 +257,7 @@ def grade_writing_task_2():
response = make_openai_instruct_call(GPT_3_5_TURBO_INSTRUCT, message, token_count,
["comment"],
GEN_QUESTION_TEMPERATURE)
response['misspelled_pairs'] = get_misspelled_pairs(answer)
return response
else:
return {