Update README.md
Browse files
README.md
CHANGED
@@ -38,7 +38,7 @@ The figure below shows that open VLMs perform poorly on NutritionQA, even after
|
|
38 |
To compute the metrics, please use the following script:
|
39 |
|
40 |
```python
|
41 |
-
def
|
42 |
prompt = f"""You are tasked with evaluating a model's prediction for a question-answering task. Your goal is to determine if the model's prediction is correct based on its meaning, not necessarily exact wording.
|
43 |
|
44 |
Here is the question that was asked:
|
|
|
38 |
To compute the metrics, please use the following script:
|
39 |
|
40 |
```python
|
41 |
+
def score(question: str, target: str, prediction: str) -> bool:
|
42 |
prompt = f"""You are tasked with evaluating a model's prediction for a question-answering task. Your goal is to determine if the model's prediction is correct based on its meaning, not necessarily exact wording.
|
43 |
|
44 |
Here is the question that was asked:
|