kermitt2 / grobid_client_python

Python client for GROBID Web services
Apache License 2.0
279 stars 75 forks source link

No output #27

Closed samanyougarg closed 3 years ago

samanyougarg commented 3 years ago

Hi, I have a server running and am trying to run the following code to extract text from 1 PDF but don't get any output files.

from grobid_client.grobid_client import GrobidClient

client = GrobidClient(config_path="./config.json")
client.process("processFulltextDocument", "article.pdf", n=1, force=True)

It just says "GROBID server is up and running" and stops.

kermitt2 commented 3 years ago

Hello !

The process() method is expecting a path to a repository of PDF files, not an individual PDF. So no file to process found and nothing done (see https://github.com/kermitt2/grobid_client_python/blob/master/grobid_client.py#L91).

samanyougarg commented 3 years ago

Thank you very much!