Skip to content

Conversation

@nassarofficial
Copy link
Contributor

Enables toggling document element types (OCR text, tables, pictures, charts, code, formulas) via include_* flags in DocTagsParams. Serializers filter elements based on these flags, allowing selective export by task type.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 28, 2025

DCO Check Passed

Thanks @nassarofficial, all your commits are properly signed off. 🎉

@dosubot
Copy link

dosubot bot commented Nov 28, 2025

Related Documentation

Checked 4 published document(s) in 1 knowledge base(s). No updates required.

How did I do? Any feedback?  Join Discord

@mergify
Copy link

mergify bot commented Nov 28, 2025

Merge Protections

Your pull request matches the following merge protections and will not be merged until they are valid.

🔴 Require two reviewer for test updates

This rule is failing.

When test data is updated, we require two reviewers

  • #approved-reviews-by >= 2

🟢 Enforce conventional commit

Wonderful, this rule succeeded.

Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/

  • title ~= ^(fix|feat|docs|style|refactor|perf|test|build|ci|chore|revert)(?:\(.+\))?(!)?:

@codecov
Copy link

codecov bot commented Nov 28, 2025

Codecov Report

❌ Patch coverage is 84.66258% with 25 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
docling_core/transforms/serializer/doctags.py 84.66% 25 Missing ⚠️

📢 Thoughts on this report? Let us know!

@PeterStaar-IBM PeterStaar-IBM changed the title Configurable output for doctags feat: Configurable output for doctags Nov 28, 2025
Signed-off-by: Ahmed Nassar <ahn@zurich.ibm.com>
return delim


def create_task_filtered_params(task_list: list[str], **kwargs) -> DocTagsParams:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This preprocessing code best belongs to where these task type values "ocr", "layout" etc are governed.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

File to be removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants