grobid_client_python icon indicating copy to clipboard operation
grobid_client_python copied to clipboard

Allow to request bibtex from ProcessReferences

Open LukasWallrich opened this issue 2 years ago • 1 comments

Thanks for this very helpful client!

I would love the ability to request bibtex from ProcessReferences - for that, grobid needs application/x-bibtex but I don't believe there is a way to pass that at present? Or am I overlooking something?

LukasWallrich avatar Oct 04 '22 10:10 LukasWallrich

Hi @LukasWallrich !

This is indeed not supported by the client out of the box, no parameter for this for the moment.

But to get bibtex results when using the processReferences or processCitationList service, you can edit the file grobid_client/client.py, line 19:

    accept_type = "application/xml"

to

   accept_type = "application/x-bibtex"

After edit, you need to reinstall:

> python3 setup.py install

kermitt2 avatar Oct 09 '22 14:10 kermitt2