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

[Question] Load custom topic file through CLI #1439

Closed
AmenRa opened this issue Feb 4, 2023 · 5 comments
Closed

[Question] Load custom topic file through CLI #1439

AmenRa opened this issue Feb 4, 2023 · 5 comments

Comments

@AmenRa
Copy link

AmenRa commented Feb 4, 2023

Hi, can I load a custom topic file through CLI? If so, how should it be formatted?
Sorry if it is already explained somewhere, I could not find it.

Example:

python -m pyserini.search.lucene \
    --threads 16 --batch-size 128 \
    --index msmarco-v1-passage-slim \
    --topics <CUSTOM_TOPICS> \
    --output msmarco-v1-passage/bm25-pyserini/k1=0.9-b=0.4/dev.trec \
    --bm25 --k1 0.9 --b 0.4
@ToluClassics
Copy link
Member

Hi @AmenRa,

You can store your custom topics as a tsv with the first column being the topic_id and the second column is the topic.
Here's an example of that it should look like .

@AmenRa
Copy link
Author

AmenRa commented Feb 4, 2023

Thank you very much! :)

@AmenRa AmenRa closed this as completed Feb 4, 2023
@pcvishak
Copy link

pcvishak commented Jun 8, 2023

Hi,
The link is not accessible. Could you please provide another example?

@lintool
Copy link
Member

lintool commented Jun 8, 2023

@pcvishak
Copy link

pcvishak commented Jun 8, 2023

Thanks so much.

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

4 participants