-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version mismatch at installation & encoding issue #223
Comments
Did you try doing this:
|
yes, the error is still the same at the "prediction = finder.get_answers(question=question, top_k_retriever=5, top_k_reader=3)" |
Hey @Krak91 , What versions of Haystack and FARM are you using? The error makes me believe that you are using Haystack from latest master + FARM 0.4.6. To resolve this you can do one of these options:
(which will install FARM 0.4.5) Let me know if this resolves your issue! |
Hi, I've installed the right versions of farm and haystack and it worked. Thanks. Some more information:
|
This should be resolved in the latest version as we upgraded to torch 1.5.1
Can you please elaborate on what you are exactly changing there? Are you using utf-8 encoding there? What errors come up that you want to ignore? |
I'm changing with open(path) as doc: to with open(path, encoding='utf-8', errors='ignore') as doc: |
I get the following error when trying to ask the model a question. My pipeline looks like this:
def pipeline(docs, questions):
Error message
File ".../model.py", line 23, in pipeline
predictions[question] = finder.get_answers(question=question, top_k_retriever=5, top_k_reader=3)
File "...venv\lib\site-packages\haystack\finder.py", line 57, in get_answers
top_k=top_k_reader) # type: Dict[str, Any]
File "...\venv\lib\site-packages\haystack\reader\farm.py", line 259, in predict
if self._check_no_answer(ans):
File "...\venv\lib\site-packages\haystack\reader\farm.py", line 416, in _check_no_answer
assert d["answer"] == "is_impossible", f"Check for no answer is not working"
AssertionError: Check for no answer is not working
Expected behavior
Return model predictions
┆Issue is synchronized with this Jira Task by Unito
The text was updated successfully, but these errors were encountered: