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

Section Heading Error #30

Open
zyang19 opened this issue Feb 19, 2025 · 0 comments
Open

Section Heading Error #30

zyang19 opened this issue Feb 19, 2025 · 0 comments

Comments

@zyang19
Copy link

zyang19 commented Feb 19, 2025

Hi,

I am using the following code to extract the section headers/headings from a scientific paper.

for span in document.spans['layout']:
   print(span._.heading)

It works on some headers, but most of time it will provide the incorrect headers. For example, it assumed the footnote as the header due to text formatting.

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

1 participant