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

Need "bert_table_tokenized.pkl" to evaluate retriever #4

Open
km9mn opened this issue Feb 17, 2024 · 1 comment
Open

Need "bert_table_tokenized.pkl" to evaluate retriever #4

km9mn opened this issue Feb 17, 2024 · 1 comment

Comments

@km9mn
Copy link

km9mn commented Feb 17, 2024

Hi

I want to evaluate trained retriever.
I got this error message running retriever_eval.py.

Traceback (most recent call last):
  File "./src/retriever_eval.py", line 210, in <module>
    main()
  File "./src/retriever_eval.py", line 200, in main
    index = build_faiss_index(config, args, accelerator)
  File "./src/retriever_eval.py", line 57, in build_faiss_index
    table_dataloader = get_table_dataloader(config)
  File "/home/kyumin/project/table/Open_WikiTable/src/dataloader.py", line 320, in get_table_dataloader
    data = tokenized_table(config)
  File "/home/kyumin/project/table/Open_WikiTable/src/dataloader.py", line 305, in __init__
    self.tokenized = torch.load(path)
  File "/home/kyumin/anaconda3/envs/openwiki/lib/python3.8/site-packages/torch/serialization.py", line 699, in load
    with _open_file_like(f, 'rb') as opened_file:
  File "/home/kyumin/anaconda3/envs/openwiki/lib/python3.8/site-packages/torch/serialization.py", line 230, in _open_file_like
    return _open_file(name_or_buffer, mode)
  File "/home/kyumin/anaconda3/envs/openwiki/lib/python3.8/site-packages/torch/serialization.py", line 211, in __init__
    super(_open_file, self).__init__(open(name, mode))
FileNotFoundError: [Errno 2] No such file or directory: './data/augmented/bert_table_tokenized.pkl'

Where can I get it?

Thank you in advance.

@yuxiang-guo
Copy link

@km9mn Hi, have you solved this problem? I got a similar error when running retriever_train.py
File "./src/retriever_train.py", line 148, in
main()
File "./src/retriever_train.py", line 144, in main
trainer(config,args)
File "./src/retriever_train.py", line 61, in trainer
train_dataloader = get_retriever_dataloader(question_tokenizer, config)
File "/home/yxguo/Open_WikiTable-main/Open_WikiTable-main/src/dataloader.py", line 182, in get_retriever_dataloader
train_dataset.to_json(path)
File "/home/yxguo/anaconda3/envs/myditto/lib/python3.7/site-packages/pandas/core/generic.py", line 2571, in to_json
storage_options=storage_options,
File "/home/yxguo/anaconda3/envs/myditto/lib/python3.7/site-packages/pandas/io/json/_json.py", line 131, in to_json
path_or_buf, "w", compression=compression, storage_options=storage_options
File "/home/yxguo/anaconda3/envs/myditto/lib/python3.7/site-packages/pandas/io/common.py", line 707, in get_handle
newline="",
FileNotFoundError: [Errno 2] No such file or directory: './data/augmented/reader_train.json'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants