docs: update interface in README (#50)
Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
This commit is contained in:
parent
7052bee999
commit
fe817b11d7
@ -52,7 +52,7 @@ from docling.document_converter import DocumentConverter
|
|||||||
source = "https://arxiv.org/pdf/2206.01062" # PDF path or URL
|
source = "https://arxiv.org/pdf/2206.01062" # PDF path or URL
|
||||||
converter = DocumentConverter()
|
converter = DocumentConverter()
|
||||||
doc = converter.convert_single(source)
|
doc = converter.convert_single(source)
|
||||||
print(doc.export_to_markdown()) # output: "## DocLayNet: A Large Human-Annotated Dataset for Document-Layout Analysis [...]"
|
print(doc.render_as_markdown()) # output: "## DocLayNet: A Large Human-Annotated Dataset for Document-Layout Analysis [...]"
|
||||||
```
|
```
|
||||||
|
|
||||||
### Convert a batch of documents
|
### Convert a batch of documents
|
||||||
|
Loading…
Reference in New Issue
Block a user