Spaces:
Build error
Build error
Ahmet Kaan Sever
commited on
Commit
·
b561b82
1
Parent(s):
27b1a73
Fixed f string for reading comp.
Browse files
src/deepeval/reading_comp_mc.py
CHANGED
@@ -28,6 +28,8 @@ class ReadingComprehensionMCTask(BaseTask):
|
|
28 |
formatted_choices = "\n".join([f"{chr(65+i)}: {choice}" for i, choice in enumerate(choices)])
|
29 |
category = row["difficulty"].lower().replace(' ','')
|
30 |
answer = row["answer"]
|
|
|
|
|
31 |
|
32 |
# Prints for debugging
|
33 |
print(f"Choices: {choices}")
|
@@ -44,7 +46,7 @@ class ReadingComprehensionMCTask(BaseTask):
|
|
44 |
|
45 |
# Construct the prompt/message
|
46 |
instruction = ""
|
47 |
-
prompt = f"Paragraf:\n{
|
48 |
message = prompt
|
49 |
|
50 |
# Get/format answer of the model
|
|
|
28 |
formatted_choices = "\n".join([f"{chr(65+i)}: {choice}" for i, choice in enumerate(choices)])
|
29 |
category = row["difficulty"].lower().replace(' ','')
|
30 |
answer = row["answer"]
|
31 |
+
text = row["text"]
|
32 |
+
question_about_the_text = row["question_about_the_text"]
|
33 |
|
34 |
# Prints for debugging
|
35 |
print(f"Choices: {choices}")
|
|
|
46 |
|
47 |
# Construct the prompt/message
|
48 |
instruction = ""
|
49 |
+
prompt = f"Paragraf:\n{text}\nSoru:{question_about_the_text}\nSeçenekler:\n{formatted_choices}\n{instruction}\n"
|
50 |
message = prompt
|
51 |
|
52 |
# Get/format answer of the model
|