-
Notifications
You must be signed in to change notification settings - Fork 354
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
Cannot build index with dense representations #1581
Comments
This test case might be helpful? https://github.com/castorini/pyserini/blob/master/tests/test_encoder.py#L85 |
Thanks. With the command in there on cpu and some other tweaks I managed to get it running :) |
hi @felicitywang1 can you share what the command was so the next person doesn't need to figure it out from scratch again? ;) |
It's exactly the same as in https://github.com/castorini/pyserini/blob/master/tests/test_encoder.py#L85 ... |
Gotcha, thanks! Glad the test cases are doing their jobs... |
Hi,
I followed the instructions here (with some modifications to run locally on mac cpu) and got the following NoneType error. Any suggestions how I should fix it?
Thank you.
Traceback (most recent call last):
File "/Users/f.wang1/miniconda3/envs/transformers/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/Users/f.wang1/miniconda3/envs/transformers/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/Users/f.wang1/miniconda3/envs/transformers/lib/python3.8/site-packages/pyserini/encode/main.py", line 118, in
encoder = init_encoder(args.encoder.encoder, args.encoder.encoder_class, device=args.encoder.device)
AttributeError: 'NoneType' object has no attribute 'encoder'
zsh: command not found: output
The text was updated successfully, but these errors were encountered: