Closed dg4271 closed 3 years ago
Hey @dg4271 thanks for using haystack.
Indeed, please use the FARMReader for the evaluation for now. It should be able to load all QA models from the Huggingface modelhub - also a korean model like https://huggingface.co/monologg/koelectra-base-v3-finetuned-korquad. Or which model do you intend to use?
Thanks, @Timoeller
I am using exactly that model (https://huggingface.co/monologg/koelectra-base-v3-finetuned-korquad)
As a related question, if implemented as follows,
reader = FARMReader("monologg/koelectra-base-v3-finetuned-korquad", top_k_per_candidate=4)
I found warning message below.
01/14/2021 01:09:43 - WARNING - farm.modeling.language_model -
Could not automatically detect from language it is. We guess it's an ENGLISH model ... If not: Init the language model by supplying the 'language' param.
Do I have to specify the language? (The above warning seems to have removed in the latest Farm code.) Exactly, it was an artifact that is now removed from farm. Please ignore the warning.
Does haystack (and I guess an ElastisSearch retriever) work with the korean model? If you run benchmarks please report back here some results, would be highly interested in non/english QA / ODQA results.
Of course. I'll share the results.
Thank you for your confirmation.
Issue seems fixed. Please still post your Korean results once you get them here or reopen the issue if more problems occur.
I want to do evaluation on TransformersReader as FARMReader gives
ImportError: Failed to import 'sentence_transformers'. Run 'pip install farm-haystack[inference]'. Original error: No module named 'sentence_transformers'
Hi @LI3ARA when you Run 'pip install farm-haystack[inference]' the error will go away. It will install sentence_transformers. You can find detailed installation instructions for Haystack in the documentation. If you come across any other problems, please open a new issue instead.
yeah I tried 'pip install farm-haystack[inference] but no difference. ran !pip install -U sentence-transformers this also.
I am using a JupyterNotebook
Question What is best way to evaluate TransformersReader (I'm working on other language, korean) I've tried referring tutorial 5. But I can't evaluate using TransformersReader cause there is no eval() function. There is any plan to implement it? or should i use FarmReader to do the evaluation?