Closed xegulon closed 2 years ago
See https://github.com/kermitt2/grobid_client_python#usage-and-options it's a command line argument.
Thanks, but I don't use the command line, I use the client python object from within my python code. How to specify the sentence segmentation parameters that way?
Thanks, so what I needed is:
from grobid_client.grobid_client import GrobidClient
client = GrobidClient(config_path="config.json")
client.process("processFulltextDocument", "path/to/pdfs", segment_sentences=True, n=20)
Here is my
config.json
:I added at the end
"segmentSentences": true
, but even with that, I don't see the sentence segmentation in the TEIs. How to do that?