Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ttqa mc filename mismatch in repo #19

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions TC-Eval/inference/aggregate_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def _create_placeholder_eval_result_dict() -> Dict[str, Dict[str, Any]]:
pdict['FGC'] = {str(k): {"response": _resp_status} for k, v in data.items()}

# TTQA
data = json.load(open(f'{_CUR_DIR}/../data/TTQA/TTQA_mc_2.0.0.json'))
data = json.load(open(f'{_CUR_DIR}/../data/TTQA/TTQA_mc.json'))
pdict['TTQA'] = {str(k): {"response": _resp_status} for k, v in data.items()}

# XSum_TC
Expand Down Expand Up @@ -141,4 +141,4 @@ def aggregate_inference_results_for_evaluation(self, inference_results_dir):
result_dir = args.result_dir
model_name = args.model_name
agg = ResultAggregator(model_name)
agg.aggregate_inference_results_for_evaluation(result_dir)
agg.aggregate_inference_results_for_evaluation(result_dir)
2 changes: 1 addition & 1 deletion TC-Eval/inference/scenarios.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def __getitem__(self, idx) -> Dict[str, any]:


class TTQA(Dataset):
def __init__(self, data_path: str = f"{_CUR_DIR}/../data/TTQA/TTQA_mc_2.0.0.json", **kwargs):
def __init__(self, data_path: str = f"{_CUR_DIR}/../data/TTQA/TTQA_mc.json", **kwargs):
raw_data = json.load(open(data_path, "r", encoding="utf-8"))
self._js_ds = [dict(id=str(i), **obj) for i, obj in raw_data.items()]

Expand Down