-
Notifications
You must be signed in to change notification settings - Fork 429
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
processHeaderDocument
returns BibTeX by default instead of TEI
#1093
Comments
Hi @michamos, long time not see 😄 It seems more a problem due to how Jakarta selects the default when Accept is not specified. One solution I saw is to add an additional filter to default the Accept to I will check it out a bit more in detail |
Hi @lfoppiano, indeed :) We've been using GROBID in prod for INSPIRE for quite a while now. We use it to extract author and affiliation info from PDFs and to segment references for interactive search (so users can copy/paste references from a paper and it magically works). Unfortunately, our current resources are very limited, so we can't really contribute beyond submitting bug reports. Thanks for looking into the issue! |
I dug into this and did not find a clean solution. I'm quite surprised that there is no way to define a default behavior. Nevertheless, I updated the documentation, though, stating that the |
Hi, I noticed that, at least since v0.7.3, GROBID started returning bibtex by default for
/api/processHeaderDocument
. This contradicts https://grobid.readthedocs.io/en/latest/Grobid-service/#apiprocessheaderdocument which claims a specialAccept: application/x-bibtex
header must be used for BibTeX and that the default is TEI XML.Note that it's possible to get an XML response by using
Accept: application/xml
.Steps to reproduce
curl https://kermitt2-grobid.hf.space/api/processHeaderDocument --form input=@Downloads/2212.12604v1.pdf
Requested info
Linux amd64 through
lfoppiano/grobid:0.7.3
Docker image & whatever huggingface is usingjava --version
)?openjdk 17.0.2 2022-01-18
OpenJDK Runtime Environment (build 17.0.2+8-86)
OpenJDK 64-Bit Server VM (build 17.0.2+8-86, mixed mode, sharing)
--stacktrace
and--info
for better log traces (e.g../gradlew run --stacktrace --info
) or attach the log filelogs/grobid-service.log
.The text was updated successfully, but these errors were encountered: