Add API to supply pre-computed figures/tables and areas to ignore #1375
Draft
lfoppiano wants to merge 6 commits into
Draft
Add API to supply pre-computed figures/tables and areas to ignore #1375lfoppiano wants to merge 6 commits into
lfoppiano wants to merge 6 commits into
Conversation
lfoppiano
marked this pull request as draft
March 3, 2026 08:04
lfoppiano
force-pushed
the
feature/add-ignore-areas-api
branch
2 times, most recently
from
March 3, 2026 08:05
275a28e to
63f0189
Compare
lfoppiano
force-pushed
the
feature/add-ignore-areas-api
branch
from
June 14, 2026 05:41
20d703a to
647249a
Compare
Introduce a Typed Areas API allowing clients to declare rectangular PDF regions with a type (figure, table, ignore, paratext) for specialized processing. Layout tokens are filtered by these areas: figure/table regions are routed to the dedicated parsers (tables grouped per area), while ignore/paratext regions are excluded from body processing. - New layout types TypedArea and AreaType - Document.filterLayoutTokensByTypedAreas categorises tokens and recomputes block pointers; excluded tokens are dropped from body pieces - typedAreas threaded through GrobidAnalysisConfig and the REST endpoints (header, header-funding, fulltext, fulltext-asset, references) via a parseTypedAreas JSON helper - Documentation (Typed-Areas-API.md, Grobid-service.md, index.md) Squashed from feature/add-ignore-areas-api and rebased onto master, integrating with the concurrent debug-labelling feature.
Signed-off-by: Luca Foppiano <luca@foppiano.org>
lfoppiano
force-pushed
the
feature/add-ignore-areas-api
branch
from
July 21, 2026 15:40
5607763 to
f6f974a
Compare
Signed-off-by: Luca Foppiano <luca@foppiano.org>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TBC