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

Cache path change #2322

Open
liyongkang123 opened this issue Dec 31, 2023 · 1 comment
Open

Cache path change #2322

liyongkang123 opened this issue Dec 31, 2023 · 1 comment

Comments

@liyongkang123
Copy link

liyongkang123 commented Dec 31, 2023

Thanks a lot for your great work!!!

Can I change the cache path of Anserini to another path that I want?

In fact, I have set the cache for downloading and code running for Pyserini, but I did not find a way to set the cache path for Anserini.

For example, I run the following code and I will get the output: (code come from

python -m pyserini.eval.msmarco_passage_eval msmarco-passage-dev-subset run.msmarco-passage.txt

Downloading https://raw.githubusercontent.com/castorini/anserini-tools/master/scripts/msmarco/msmarco_passage_eval.py to /XXXXXX/cache/eval/msmarco_passage_eval.py...
/XXXXXX/cache/eval/msmarco_passage_eval.py already exists!
Skipping download.
Downloading qrels from https://raw.githubusercontent.com/castorini/anserini-tools/master/topics-and-qrels/qrels.msmarco-passage.dev-subset.txt
Running command: ['python', '/XXXXXX/cache/eval/msmarco_passage_eval.py', '/home/myname/.cache/anserini/topics-and-qrels/qrels.msmarco-passage.dev-subset.txt', 'run.msmarco-passage.txt']

And I found qrels from Anserini was downloaded to the default /home/ myname/.cache folder, not the Pyserini cache folder I set.

@lintool
Copy link
Member

lintool commented Aug 23, 2024

Apparently, this is a feature requested by more than one person...
Unfortunately, we haven't had time to work on it...

The solution I use is to symlink ~/.cache to another location.

I'll leave issue open - maybe we'll have time to work on it in the future...

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