atz21 commited on
Commit
6381e0a
·
verified ·
1 Parent(s): a86ae44

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +22 -1
app.py CHANGED
@@ -16,7 +16,28 @@ Exclude any text that has been cut, striked, or crossed out (since these may rep
16
  Clearly distinguish between a "step cut" and when variables cancel out during a step.
17
 
18
  Present the transcription neatly without including unnecessary markings. """
19
- GRADING_PROMPT = """ You are an official examiner. Grade the student transcription using the question paper and the official marking scheme. Rules: 1. Apply marks exactly as per the markscheme (M1, A1, etc.). 2. M marks must be earned before A marks. 3. Justify each awarded or withheld mark with clear reasoning. 4. Classify all errors as Conceptual Error, Silly Mistake, or None. 5. Follow dependency between M and A strictly. 6. Do not give marks outside the markscheme. Output must be a structured grading report with reasoning. """
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
 
21
  # ---------- HELPER: Save to PDF ----------
22
  def save_as_pdf(text, filename="output.pdf"):
 
16
  Clearly distinguish between a "step cut" and when variables cancel out during a step.
17
 
18
  Present the transcription neatly without including unnecessary markings. """
19
+ GRADING_PROMPT = """ Instructions to Examiners:
20
+ Abbreviations:
21
+ - M: Marks for correct Method.
22
+ - A: Marks for Answer or Accuracy (often depends on preceding M mark).
23
+ - R: Marks for clear Reasoning.
24
+ - AG: Answer given in the question; no marks awarded.
25
+ - FT: Follow Through; award marks for correct method/answer using incorrect earlier results.
26
+
27
+ Marking Rules:
28
+ 1. Always follow the markscheme annotations (M1, A2, etc.).
29
+ 2. M marks must be earned before dependent A marks are awarded (no M0 followed by A1 unless explicitly allowed).
30
+ 3. If M and A marks are on the same line (e.g., M1A1), M is for the method attempt, A is for correct values.
31
+ 4. Multiple A marks on the same line are awarded independently unless otherwise noted.
32
+ 5. Do not split M2, A3, etc. unless instructed.
33
+ 6. "Show that" responses do not need to restate the AG line unless noted.
34
+ 7. Once a correct answer is seen, ignore further incorrect working unless it affects a later part (then apply FT as appropriate).
35
+ 8. Do not award the final A mark if an incorrect approximation is used in the same part.
36
+
37
+ Error Avoidance:
38
+ - **No incorrect mark allocation:** Do not award marks unless they are explicitly justified by the markscheme.
39
+ - **No misclassification of errors:** Distinguish correctly between "Conceptual Errors" and "Silly Mistakes."
40
+ - **Follow markscheme logic exactly:** Especially regarding when to withhold accuracy marks if method marks are not earned."""
41
 
42
  # ---------- HELPER: Save to PDF ----------
43
  def save_as_pdf(text, filename="output.pdf"):