+
Skip to content

Conversation

MarkLindblad
Copy link
Contributor

No description provided.

a title.
Here is an example set of output label options:
{"promote_title": True, "title_candidate_elements": ["Section-header", "Caption"]}
default: None (no elements are promoted to titles)
Copy link
Contributor

Choose a reason for hiding this comment

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

Default- promote_title: False? None seems harder to grok.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Are you suggesting we change the default value of output_label_options? It's default value is currently None - which is effectively {"promote_title": False}, but we error when promote_title is specified and title_candidate_elements is not specified, and the implementation actually uses a None, not a {"promote_title": False}.

Copy link
Contributor

Choose a reason for hiding this comment

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

Discussed offline, will resolve in a follow up

Copy link
Contributor

@karanataryn karanataryn left a comment

Choose a reason for hiding this comment

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

Approved with suggestions.

a title.
Here is an example set of output label options:
{"promote_title": True, "title_candidate_elements": ["Section-header", "Caption"]}
default: None (no elements are promoted to titles)
Copy link
Contributor

Choose a reason for hiding this comment

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

Discussed offline, will resolve in a follow up

@MarkLindblad MarkLindblad enabled auto-merge (squash) December 5, 2024 21:28
@MarkLindblad MarkLindblad merged commit a42afd8 into main Dec 5, 2024
11 of 14 checks passed
@MarkLindblad MarkLindblad deleted the fix-promote-to-title-docstring branch December 5, 2024 21:36
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.

2 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载