Commit 6d709db1 by Vik Paruchuri

Fix some ML model creation issues

parent 06f69411
......@@ -93,13 +93,13 @@ def grade(grader_data,submission):
'prompt-overlap' : feedback['prompt_overlap'],
})
#Only return spelling and grammar feedback for low scoring responses
if results['score']/float(max_score)<.33:
results['feedback'].update(
{'spelling' : feedback['spelling'],
{
'spelling' : feedback['spelling'],
'grammar' : feedback['grammar'],
'markup-text' : feedback['markup_text'],
})
}
)
else:
#If error, success is False.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment