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

grobid augmenter - fix Sections-Paragraphs bug #282

Merged
merged 2 commits into from
Dec 6, 2023

Conversation

geli-gel
Copy link
Contributor

@geli-gel geli-gel commented Dec 1, 2023

For https://github.com/allenai/scholar/issues/38452 and https://github.com/allenai/scholar/issues/39910

This fixes a bug that was resulting in sections that had paragraphs but no sentences, which resulted in an error in pipeline-elements in SPP.

then (from initial investigation notes in https://github.com/allenai/scholar/issues/38452#issuecomment-1821935080) -- section id 4 has a paragraph but no sentences (paragraphs come from sentences so this didn't make sense):
image

The problem was in the python control flow where paragraphs were being added to even if we weren't adding the sentences (due to the sentence text already being claimed by the previous duplicate section -- due to it being a weird PDF and Grobid giving double sections -- more details on that under "continued investigation notes 11/29:" in the same investigation notes comment linked above)

now -- no empty paragraph/sentence-less section!

image

todo:

Copy link
Contributor

@cmwilhelm cmwilhelm left a comment

Choose a reason for hiding this comment

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

oooooh

@geli-gel geli-gel merged commit a39556d into main Dec 6, 2023
5 checks passed
@geli-gel geli-gel deleted the sections_paragraphs_bug branch December 6, 2023 00:44
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