-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Michele Dolfi <[email protected]>
- Loading branch information
1 parent
053eae4
commit 8cc147b
Showing
2 changed files
with
5 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
from docling.document_converter import DocumentConverter | ||
|
||
source = "https://arxiv.org/pdf/2206.01062" # PDF path or URL | ||
source = "https://arxiv.org/pdf/2408.09869" # PDF path or URL | ||
converter = DocumentConverter() | ||
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: ## Docling Technical Report [...]" |