Skip to content
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

Headings (Table of Content, TOC) #10

Open
MrUnknown789556 opened this issue Jun 22, 2023 · 1 comment
Open

Headings (Table of Content, TOC) #10

MrUnknown789556 opened this issue Jun 22, 2023 · 1 comment

Comments

@MrUnknown789556
Copy link

Trying to extract the table of content ("Introduction", ..., "References"), I looked into the extracted html file from Burdoc. It could fairly good distinguish the headings from other items in the text. Burdoc extracted all the named outlines correctly, but also an additional item, that is not part of the TOC. It additional extracted the item "Table 4".

I use the string "" to search in the generated html file for the TOC.

There seems to be no difference, if I use Burdoc with the parameter "--no-ml-tables" or not.

Screenshot 2023-06-22 135926
Table 4 (In html)
Table 4 (In PDF)
The.pdf

@jennis0
Copy link
Owner

jennis0 commented Jul 1, 2023

Ah, I think this one might be challenging as it's a false positive for one of the rules used to identify headings (a short bold piece of text directly preceding a standard paragraph and visually spaced from any prior text). Arguably it is a heading, albeit not one that'd be presented in a standard ToC.

I wouldn't expect --no-ml-tables to change this as turning off table-finding means we don't actually try to identify tables in the text, the text the contain still goes through the main text parsing pipeline (and Burdoc doesn't yet identify captions associated with tables so it wouldn't make a difference even if the table had been found)

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

No branches or pull requests

2 participants