-
Notifications
You must be signed in to change notification settings - Fork 65
Fix incorrect docstring for promote-certain-elements-to-title feature #1057
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
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) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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}.
There was a problem hiding this comment.
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
There was a problem hiding this 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) |
There was a problem hiding this comment.
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
No description provided.