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

editing the expriments-msmarco-passage file and putting the relevant windows code #2583

Merged
merged 7 commits into from
Aug 30, 2024

Conversation

setarehbabajani
Copy link
Contributor

@setarehbabajani setarehbabajani commented Aug 30, 2024

I end up doing "Anserini: Start Here" and "BM25 Baselines for MS MARCO Passage Ranking in Anserini" parts on Windows 10 using commit. I used Python 3.12.5 and Maven 3.9.9, java version 22. I used Windows 10 and 64-bits operating system. For the first part, I faced minor issues with the Maven setup, which were resolved by correcting environment variables and for the second part, the retrieval of the documents took too long time from me. But finally, all steps worked as expected. I eagerly follow the next steps of onboarding .

@lintool lintool self-requested a review August 30, 2024 12:18
Copy link
Member

@lintool lintool left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Anserini is on Java 21 now... somehow you're using a very old version...

@@ -101,6 +102,15 @@ bin/run.sh io.anserini.index.IndexCollection \
-generator DefaultLuceneDocumentGenerator \
-threads 9 -storePositions -storeDocvectors -storeRaw
```
In Windows:
```bash
java -cp target\anserini-0.12.0-fatjar.jar io.anserini.index.IndexCollection ^
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't look right... anserini is up to release v0.37.0 now.

If you want to go this route, add a bin/run.bat or equivalent run script for Windows?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, sorry for my mistake. Actually, I use anserini v0.37.1 for the windows scripts.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would still like a "launch script" that parallels bin/run.sh so that we don't need to change the version of the fatjar every time we do a release.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will write code for it and again make a new pull request for that.

@setarehbabajani
Copy link
Contributor Author

setarehbabajani commented Aug 30, 2024

I also edit the java version which i used. I am using version 22.

Copy link
Member

@lintool lintool left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you also need to check in run.bat

+ Results reproduced by [@npjd](https://github.com/npjd) on 2024-08-17 (commit [`46b6834`](https://github.com/castorini/anserini/commit/46b68345b0ee614f511b87c9f66cee399e1308c5))
+ Results reproduced by [@setarehbabajani](https://github.com/setarehbabajani) on 2024-08-30 (commit [`ff0a69ac`](https://github.com/castorini/anserini/commit/ff0a69acf93fd7e05e65fb3dd6fa2cda41f583ff))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Please fix this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i put the code of win-run.bat and also change the bash code inside the document.
For commit, sorry I do not understand what is the problem. I change the code in the forked repository and then create pull request to the main anserini repository.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I go to your URL, it refers to a commit that's not part of the repo. It should refer to an actual commit point in Anserini. Your other URL is fine.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry for the confusion. I put the commit id of the commit of my forked repository. Is not correct? Because the pull request is not merged, I can just access to my local commit id.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, don't point to the fork. point to a commit id in anserini master.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks a lot. I think everything is now okay.

@lintool lintool self-requested a review August 30, 2024 14:52
@@ -0,0 +1,20 @@
@echo off
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not rename bin/run.bat to be consistent?

Not sure we need a new directory...

Copy link
Contributor Author

@setarehbabajani setarehbabajani Aug 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree but the bin directory is ignored due to .gitignore file. Because of that, I make new directory and put code there.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can git force check in.

@lintool lintool merged commit e0a9578 into castorini:master Aug 30, 2024
1 check passed
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.

2 participants