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

All result scores are "nan" #35

Open
ianni67 opened this issue May 13, 2023 · 4 comments
Open

All result scores are "nan" #35

ianni67 opened this issue May 13, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@ianni67
Copy link

ianni67 commented May 13, 2023

Hello, thank you for sharing your work. Unfortunately I have an issue that prevents me from using it.
After installing and running semantra, in the web interface all indexed files report NaN score for whatever query.
Screenshot(13)

@ianni67
Copy link
Author

ianni67 commented May 13, 2023

Just to add a bit of info, I get the following warning:

/home/ianni/.virtualenvs/SEMANTRA/lib/python3.10/site-packages/numpy/core/fromnumeric.py:3464: RuntimeWarning: Mean of empty slice.
  return _methods._mean(a, axis=axis, dtype=dtype,
/home/ianni/.virtualenvs/SEMANTRA/lib/python3.10/site-packages/numpy/core/_methods.py:192: RuntimeWarning: invalid value encountered in scalar divide
  ret = ret.dtype.type(ret / rcount)

@freedmand
Copy link
Owner

Are you passing in empty text files? Anything you could share so I might be able to reproduce?

@freedmand freedmand added the bug Something isn't working label May 17, 2023
@ianni67
Copy link
Author

ianni67 commented May 18, 2023

@freedmand
Copy link
Owner

Thanks, I can verify the issue! Digging in to see what's going wrong/how I can fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants