semantra
semantra copied to clipboard
All result scores are "nan"
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.
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)
Are you passing in empty text files? Anything you could share so I might be able to reproduce?
Yes of course, here are the contents of some of the text files. They are only very short files with one or a couple of rows. 2021-12-16-124328.txt 2023-04-18-08-47-0001.txt COCO_test2015_000000000014.txt COCO_test2015_000000000016.txt COCO_test2015_000000000019.txt COCO_test2015_000000000128.txt COCO_test2015_000000000155.txt feline.txt grand_canyon_1.txt nirvana.txt
Thanks, I can verify the issue! Digging in to see what's going wrong/how I can fix it.