Update my_model/tabs/finetuning_evaluation.py
Browse files
my_model/tabs/finetuning_evaluation.py
CHANGED
@@ -6,12 +6,13 @@ from ast import literal_eval
|
|
6 |
from typing import Union, List
|
7 |
|
8 |
class KBVQAEvaluator:
|
9 |
-
def __init__(self,
|
10 |
"""
|
11 |
Initialize the VQA Processor with the dataset and configuration settings.
|
12 |
"""
|
|
|
13 |
self.stemmer = PorterStemmer()
|
14 |
-
self.df = pd.read_excel(
|
15 |
self.scores_df = pd.read_excel(data_path, sheet_name="Scores")
|
16 |
self.df = pd.read_excel(data_path, sheet_name="Main Data")
|
17 |
self.use_fuzzy = use_fuzzy
|
|
|
6 |
from typing import Union, List
|
7 |
|
8 |
class KBVQAEvaluator:
|
9 |
+
def __init__(self, use_fuzzy: bool = False):
|
10 |
"""
|
11 |
Initialize the VQA Processor with the dataset and configuration settings.
|
12 |
"""
|
13 |
+
self.use_fuzzy = False
|
14 |
self.stemmer = PorterStemmer()
|
15 |
+
self.df = pd.read_excel('evaluation_results_final.xlsx')
|
16 |
self.scores_df = pd.read_excel(data_path, sheet_name="Scores")
|
17 |
self.df = pd.read_excel(data_path, sheet_name="Main Data")
|
18 |
self.use_fuzzy = use_fuzzy
|