Skip to content
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

inference_from_dicts() got an unexpected keyword argument "max_processes" #9

Closed
keherri opened this issue Jan 20, 2020 · 1 comment
Closed

Comments

@keherri
Copy link

keherri commented Jan 20, 2020

I received this error with finder.get_answers() from the tutorial.

TypeError                                 Traceback (most recent call last)
<ipython-input-10-d4b62260fd95> in <module>
----> 1 finder.get_answers(question="Who is the buyer?", top_k_retriever=10, top_k_reader=3)

~/Desktop/haystack/haystack/__init__.py in get_answers(self, question, top_k_reader, top_k_retriever, filters)
     71                                       paragrahps=paragraphs,
     72                                       meta_data_paragraphs=meta_data,
---> 73                                       top_k=top_k_reader)
     74 
     75         return results

~/Desktop/haystack/haystack/reader/farm.py in predict(self, question, paragrahps, meta_data_paragraphs, top_k, max_processes)
     76         # get answers from QA model (Top 5 per input paragraph)
     77         predictions = self.model.inference_from_dicts(
---> 78             dicts=input_dicts, rest_api_schema=True, max_processes=max_processes
     79         )
     80 

TypeError: inference_from_dicts() got an unexpected keyword argument 'max_processes'

This was from the version installed with git clone.

@keherri
Copy link
Author

keherri commented Jan 20, 2020

Issue was cause with an older version of farm. I needed to pip uninstall farm and reinstall farm-haystack with git clone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant