castorini / bertserini

BERTserini
https://github.com/castorini/bertserini
Apache License 2.0
25 stars 10 forks source link

Error when running the example in README #19

Closed QinBixuan closed 2 years ago

QinBixuan commented 2 years ago

Hi! I run the sample in README using Option2 (the local context), with Transformers 4.16.2. I encountered an Error: TypeError: TextInputSequence must be str It happened in line candidates = bert_reader.predict(question, contexts). Could someone help with it? Thank you a lot in advance.

amyxie361 commented 2 years ago

Just updated the development branch. Please roll back to transformers==3.4.0 (for my case it works but haven't verified for other versions).