Sohanpatnaik106 / CABINET_QA

This repository contains our codebase for the method CABINET that tackles the task of Table Question Answering and achieves state-of-the-art on three benchmark datasets
10 stars 2 forks source link

some questions about evaluate #3

Open sakura073 opened 2 days ago

sakura073 commented 2 days ago

Traceback (most recent call last): File "/root/CABINET_QA/evaluate.py", line 39, in dataset = load_dataset("/root/CABINET_QA/datasets/WikiTableQuestions", recursive=True) File "/root/miniconda3/envs/tabllm/lib/python3.9/site-packages/datasets/load.py", line 2109, in load_dataset builder_instance = load_dataset_builder( File "/root/miniconda3/envs/tabllm/lib/python3.9/site-packages/datasets/load.py", line 1795, in load_dataset_builder dataset_module = dataset_module_factory( File "/root/miniconda3/envs/tabllm/lib/python3.9/site-packages/datasets/load.py", line 1424, in dataset_module_factory return LocalDatasetModuleFactoryWithoutScript( File "/root/miniconda3/envs/tabllm/lib/python3.9/site-packages/datasets/load.py", line 853, in get_module patterns = sanitize_patterns(self.data_files) if self.data_files is not None else get_data_patterns(base_path) File "/root/miniconda3/envs/tabllm/lib/python3.9/site-packages/datasets/data_files.py", line 457, in get_data_patterns return _get_data_files_patterns(resolver) File "/root/miniconda3/envs/tabllm/lib/python3.9/site-packages/datasets/data_files.py", line 248, in _get_data_files_patterns data_files = pattern_resolver(pattern) File "/root/miniconda3/envs/tabllm/lib/python3.9/site-packages/datasets/data_files.py", line 332, in resolvepattern fs, , _ = get_fs_token_paths(pattern, storage_options=storage_options) File "/root/miniconda3/envs/tabllm/lib/python3.9/site-packages/fsspec/core.py", line 684, in get_fs_token_paths paths = [f for f in sorted(fs.glob(paths)) if not fs.isdir(f)] File "/root/miniconda3/envs/tabllm/lib/python3.9/site-packages/fsspec/spec.py", line 611, in glob pattern = glob_translate(path + ("/" if ends_with_sep else "")) File "/root/miniconda3/envs/tabllm/lib/python3.9/site-packages/fsspec/utils.py", line 729, in glob_translate raise ValueError( ValueError: Invalid pattern: '**' can only be an entire path component how can I solve this problem

euler-666 commented 18 hours ago

Please load the dataset with the correct huggingface path. For WikiTQ dataset, use the following line dataset = load_dataset("Stanford/wikitablequestions", trust_remote_code=True)

Also, verify if the environment was created with the specified yml file.