TranVanTri352 commited on
Commit
36bef50
·
verified ·
1 Parent(s): 481f11a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -29,7 +29,7 @@ def parse_questions(raw_json):
29
  import re
30
  questions = []
31
  question_blocks = re.split(r"Q:\s", raw_json["generated_text"])
32
- for idx, block in enumerate(question_blocks[1:], start=1): # Bỏ qua phần đầu trước câu hỏi
33
  try:
34
  question_match = re.search(r"(.+?)\sA:", block)
35
  options_match = re.search(r"A:\s(.+?)\sCorrect:", block, re.DOTALL)
 
29
  import re
30
  questions = []
31
  question_blocks = re.split(r"Q:\s", raw_json["generated_text"])
32
+ for idx, block in enumerate(question_blocks[1:], start=1): # Skip the first part of the question
33
  try:
34
  question_match = re.search(r"(.+?)\sA:", block)
35
  options_match = re.search(r"A:\s(.+?)\sCorrect:", block, re.DOTALL)