Skip to content

Unable to use render_as_doctags #167

Answered by vagenas
Nag9694 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Nag9694, I assume you are using Docling v2 — to get the doctags in v2 just call export_to_document_tokens() on the actual document (.document attribute):

result = converter.convert(source)
doc = result.document
doctags = doc.export_to_document_tokens()

For more information check out Docling v2 and specifically these points.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cau-git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants