castorini / pyserini

Pyserini is a Python toolkit for reproducible information retrieval research with sparse and dense representations.

Home Page:http://pyserini.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pyserini library not working in google colab

bhavikchandana opened this issue · comments

while import pyserini library, I am getting this error

JavaException: JVM exception occurred: io/anserini/eval/Qrels has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 55.0 java.lang.UnsupportedClassVersionError
Can you tell how to solve this problem??

Got the solution. Just go back to older version of pyserini :). Pls look into this...

You need to upgrade your JVM to JDK 21. Per the README:

Screen Shot 2024-04-13 at 11 21 07 AM

Yeah thanks the upgrading is not happening on colab from my side... Still downgrading pyserini version worked