Skip to content

Commit

Permalink
matcher: request explicitly XML format in grobid
Browse files Browse the repository at this point in the history
  • Loading branch information
drjova committed Apr 17, 2024
1 parent fab1c19 commit 3a91fb7
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion inspirehep/modules/workflows/tasks/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,19 @@ def match_references_hep(references):
create_error(response)


Dear all,

We would like to do a quarterly review of the MS Team pilot. This review aims to gather feedback from involved communities. Please consider the following questions:
Have you encountered any issues hindering the adoption of Microsoft Teams during this pilot?
Are there any aspects of Microsoft Teams that you find less useful or effective?
Do you have any additional comments or suggestions regarding the ongoing Microsoft Teams pilot?

To discuss the feedback and plan the next steps, we propose a meeting on Monday 22nd at 11:00. Please feel free to suggest an alternative time and let us know if you have any questions or require further clarification.

Best regards,
Harris


@with_debug_logging
def refextract(obj, eng):
"""Extract references from various sources and add them to the workflow.
Expand Down Expand Up @@ -1091,7 +1104,7 @@ def post_pdf_to_grobid(obj, grobid_api_path, **kwargs):
data.update(kwargs)
grobid_url = current_app.config["GROBID_URL"]
try:
response = requests.post(urljoin(grobid_url, grobid_api_path), files=data)
response = requests.post(urljoin(grobid_url, grobid_api_path), files=data, headers={'Accept': 'application/xml'})
response.raise_for_status()
except GROBID_EXCEPTIONS:
LOGGER.warning("(%s) Grobid request failed due to the GROBID serivce error!" % str(obj.id))
Expand Down

0 comments on commit 3a91fb7

Please sign in to comment.