You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A simple, efficient Python client for [GROBID](https://github.com/kermitt2/grobid) REST services that provides concurrent processing capabilities for PDF documents, reference strings, and patents.
7
+
A simple, efficient Python client for [GROBID](https://github.com/kermitt2/grobid) REST services that provides
8
+
concurrent processing capabilities for PDF documents, reference strings, and patents.
8
9
9
10
## 📋 Table of Contents
10
11
@@ -13,8 +14,8 @@ A simple, efficient Python client for [GROBID](https://github.com/kermitt2/grobi
13
14
-[Installation](#-installation)
14
15
-[Quick Start](#-quick-start)
15
16
-[Usage](#-usage)
16
-
-[Command Line Interface](#command-line-interface)
17
-
-[Python Library](#python-library)
17
+
-[Command Line Interface](#command-line-interface)
18
+
-[Python Library](#python-library)
18
19
-[Configuration](#-configuration)
19
20
-[Services](#-services)
20
21
-[Testing](#-testing)
@@ -31,15 +32,17 @@ A simple, efficient Python client for [GROBID](https://github.com/kermitt2/grobi
31
32
-**Coordinate Extraction**: Optional PDF coordinate extraction for precise element positioning
@@ -314,6 +342,7 @@ The config file can include logging settings:
314
342
## 🔬 Services
315
343
316
344
### Fulltext Document Processing
345
+
317
346
Extracts complete document structure including headers, body text, figures, tables, and references.
318
347
319
348
```bash
@@ -336,11 +365,16 @@ When using the `--json` flag, the client converts TEI XML output to a structured
336
365
"level": "paragraph",
337
366
"biblio": {
338
367
"title": "Document Title",
339
-
"authors": ["Author 1", "Author 2"],
368
+
"authors": [
369
+
"Author 1",
370
+
"Author 2"
371
+
],
340
372
"doi": "10.1000/example",
341
373
"publication_date": "2023-01-01",
342
374
"journal": "Journal Name",
343
-
"abstract": [...]
375
+
"abstract": [
376
+
...
377
+
]
344
378
},
345
379
"body_text": [
346
380
{
@@ -365,8 +399,16 @@ When using the `--json` flag, the client converts TEI XML output to a structured
365
399
"label": "Table 1",
366
400
"head": "Sample Data",
367
401
"content": {
368
-
"headers": ["Header 1", "Header 2"],
369
-
"rows": [["Value 1", "Value 2"]],
402
+
"headers": [
403
+
"Header 1",
404
+
"Header 2"
405
+
],
406
+
"rows": [
407
+
[
408
+
"Value 1",
409
+
"Value 2"
410
+
]
411
+
],
370
412
"metadata": {
371
413
"row_count": 1,
372
414
"column_count": 2,
@@ -399,23 +441,107 @@ client.process(
399
441
```
400
442
401
443
> [!NOTE]
402
-
> When using `--json`, the `--force` flag only checks for existing TEI files. If a TEI file is rewritten (due to `--force`), the corresponding JSON file is automatically rewritten as well.
444
+
> When using `--json`, the `--force` flag only checks for existing TEI files. If a TEI file is rewritten (due to
445
+
`--force`), the corresponding JSON file is automatically rewritten as well.
446
+
447
+
### Markdown Output Format
448
+
449
+
When using the `--markdown` flag, the client converts TEI XML output to a clean, readable Markdown format. This
> When using `--markdown`, the `--force` flag only checks for existing TEI files. If a TEI file is rewritten (due to `--force`), the corresponding Markdown file is automatically rewritten as well.
403
526
404
527
### Header Document Processing
528
+
405
529
Extracts only document metadata (title, authors, abstract, etc.).
0 commit comments