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

Update tsv.py #263

Merged
merged 1 commit into from
Apr 24, 2024
Merged

Update tsv.py #263

merged 1 commit into from
Apr 24, 2024

Commits on Apr 24, 2024

  1. Update tsv.py

    The following code doesn't run correctly it the docstore is not already cache:
    
    import ir_datasets
    import more_itertools
    
    dataset = ir_datasets.load('msmarco-passage')
    
    for batch in more_itertools.chunked(dataset.docs_iter(), 8196*4):
        print(len(batch))
    
    With this quick fix, it can.
    tonellotto authored Apr 24, 2024
    Configuration menu
    Copy the full SHA
    0d47d68 View commit details
    Browse the repository at this point in the history