kermitt2 / grobid_client_python

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

Empty xml file from the demo server #46

Closed venti07 closed 3 months ago

venti07 commented 2 years ago

I have tried to process a pdf on the demo server. (cloud.science-miner.com/grobid) I also get the corresponding xml file back. Unfortunately this is empty.

client = GrobidClient(config_path='/content/grobid_client_python/config.json') client.process(service='processFulltextDocument', input_path='/content/input', output='/content/output', n=20, consolidate_citations=True, tei_coordinates=False, force=True, verbose=True)

GROBID server is up and running 1 files to process in current batch

lfoppiano commented 2 years ago

@venti07 could you give some more information? is there any error? Could you run it with the option --verbose and share the result?

venti07 commented 2 years ago

@lfoppiano thank you for your reply

I use this code in Google Colab: https://github.com/venti07/share/blob/main/Grobid.ipynb

The code runs well and no errors are issued. Therefore I don't know what I can change.

With verbose i just get this information: GROBID server is up and running 1 files to process in current batch

lfoppiano commented 2 years ago

@venti07 I tried with Colab and I have the same issue. I don't understand why. With a local deployment I have no problem to process the documents with grobid.

The demo server is anyway not for testing large quantities of files. You could deploy a local version (perhaps via docker is the simplest way): https://grobid.readthedocs.io/en/latest/Grobid-docker/

venti07 commented 2 years ago

Yes I am aware of it. Thanks for your help!