semantra icon indicating copy to clipboard operation
semantra copied to clipboard

All result scores are "nan"

Open ianni67 opened this issue 1 year ago • 4 comments

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 avatar May 13 '23 08:05 ianni67

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)

ianni67 avatar May 13 '23 09:05 ianni67

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

freedmand avatar May 17 '23 13:05 freedmand

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

freedmand avatar May 20 '23 19:05 freedmand