kermitt2 / grobid_client_python

Python client for GROBID Web services
Apache License 2.0
275 stars 74 forks source link

Grobid TEI coordinates #56

Closed rabia0001 closed 1 year ago

rabia0001 commented 1 year ago

I am trying to get the page number for references.

form = ProcessForm( segmentsentences="1", input=File(file_name=pdf_file.name, payload=f, mime_type="application/pdf"), consolidate_citations="1",include_raw_citations="1",consolidate_header="1",tei_coordinates=True ) r = process_fulltext_document.sync_detailed(client=client, multipart_data=form)

if r.is_success: article: Article = TEI.parse(r.content, figures=False)

When I do this I dont get the cooridnates ? is there a way I can get the coordinates or page number ?

kermitt2 commented 1 year ago

Duplicates https://github.com/kermitt2/grobid/issues/982