Skip to content

Commit

Permalink
docs: fix batch convert (#177)
Browse files Browse the repository at this point in the history
Signed-off-by: Michele Dolfi <[email protected]>
  • Loading branch information
dolfim-ibm authored Oct 26, 2024
1 parent 7d19418 commit 189d3c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/examples/batch_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
_log = logging.getLogger(__name__)

USE_V2 = True
USE_LEGACY = False
USE_LEGACY = True


def export_documents(
Expand Down Expand Up @@ -77,7 +77,7 @@ def export_documents(
with (output_dir / f"{doc_filename}.legacy.doctags.txt").open(
"w", encoding="utf-8"
) as fp:
fp.write(conv_res.legacy_document.export_to_doctags())
fp.write(conv_res.legacy_document.export_to_document_tokens())

elif conv_res.status == ConversionStatus.PARTIAL_SUCCESS:
_log.info(
Expand Down

0 comments on commit 189d3c2

Please sign in to comment.