Skip to content

Onboarding: BM25 fallback + setup changes#3311

Open
Syum-Berihu wants to merge 2 commits into
castorini:masterfrom
Syum-Berihu:onboarding-log
Open

Onboarding: BM25 fallback + setup changes#3311
Syum-Berihu wants to merge 2 commits into
castorini:masterfrom
Syum-Berihu:onboarding-log

Conversation

@Syum-Berihu

Copy link
Copy Markdown

Onboarding Training: SearchCollection Fix and Setup Test

What was done in this PR:

  • Fixed a Bug in SearchCollection.java: Added an else block so the code does not crash if someone forgets to type a scoring model like -bm25.
  • Added a Warning Message: The program now prints a clear [WARNING] message on the screen telling the user that it is automatically defaulting to BM25.
  • Added a .gitignore File: Set up rules to hide large local index folders, sample data, and temporary results from cluttering GitHub.
  • Onboarding Setup: Completed local training experiments to make sure both Anserini (Java) and Pyserini (Python) work correctly.

Local Testing Proof:

I compiled the code with Maven and tested both tools. The search results and scores match up perfectly:

  • Anserini Score: 1 Q0 1 1 0.753400 Anserini
  • Pyserini Score: 1 Q0 1 1 0.753400 Anserini

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

Successfully merging this pull request may close these issues.

1 participant