You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using a search engine - pyserini (anserni) - which depends on pyjnius. Anserini is based on java and pyserini is using pyjnius to operate with anserini.
Returning the search hits, anserini holds them in a java object and when I tried to return the hit content (text) of one of the hits, I got the following error
Traceback (most recent call last):
File "/my_directory/utils.py", line 26, in doc_content_from_hits
return np.array(list(map(lambda result: hit, hits)))
File "/my_directory/utils.py", line 26, in <lambda>
return np.array(list(map(lambda hit: hit.content, hits)))
File "jnius/jnius_export_class.pxi", line 336, in jnius.JavaField.__get__
File "jnius/jnius_export_class.pxi", line 456, in jnius.JavaField.read_field
File "jnius/jnius_conversion.pxi", line 155, in jnius.convert_jobject_to_python
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xed in position 46: invalid continuation byte
Other than that with that hit, it is working fine.
I'm using Python 3.7.3 on Debian, Java 8 and
Cython==0.29.14
pyserini==0.7.0.0
pyjnius==1.2.1
I saw two similar issues that existed before: #183#285
Is there any way I can solve that issue on the pyjnius side?
The text was updated successfully, but these errors were encountered:
👋 We use the issue tracker exclusively for bug reports and feature requests. However, this issue appears to be a support request. Please use our support channels to get help with the project.
Let us know if this comment was made in error, and we'll be happy to reopen the issue.
I am using a search engine - pyserini (anserni) - which depends on pyjnius. Anserini is based on java and pyserini is using pyjnius to operate with anserini.
Returning the search hits, anserini holds them in a java object and when I tried to return the hit content (text) of one of the hits, I got the following error
Other than that with that hit, it is working fine.
I'm using Python 3.7.3 on Debian, Java 8 and
I saw two similar issues that existed before: #183 #285
Is there any way I can solve that issue on the pyjnius side?
The text was updated successfully, but these errors were encountered: