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

Collect "other" text on request #1212

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

lfoppiano
Copy link
Collaborator

@lfoppiano lfoppiano commented Dec 22, 2024

This PR is a short term hacky fix for compensating having models that are slow to evolve.

This fix is disabled by default but is needed for indexing, so that we can guarantee that no text id dropped.

return processHeaderDocumentReturnXml_post(inputStream, consolidate, includeRawAffiliations, includeRawCopyrights);
@DefaultValue("0") @FormDataParam(INCLUDE_RAW_COPYRIGHTS) String includeRawCopyrights,
@DefaultValue("0") @FormDataParam(INCLUDE_DISCARDED_TEXT) String includeDiscardedText) {
return processHeaderDocumentReturnXml_post(inputStream, consolidate, includeRawAffiliations, includeRawCopyrights, includeDiscardedText);

Check warning

Code scanning / CodeQL

Information exposure through an error message Medium

Error information
can be exposed to an external user.
Error information
can be exposed to an external user.
Error information
can be exposed to an external user.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Not relevant

@coveralls
Copy link

coveralls commented Jan 4, 2025

Coverage Status

coverage: 40.806% (-0.03%) from 40.835%
when pulling 3228dd4 on feature/collect-discarded-data
into 7c0bccf on master.

# Conflicts:
#	grobid-core/src/main/java/org/grobid/core/data/Figure.java
#	grobid-core/src/main/java/org/grobid/core/data/Table.java
#	grobid-core/src/main/java/org/grobid/core/document/TEIFormatter.java
#	grobid-core/src/main/java/org/grobid/core/engines/FullTextParser.java
@lfoppiano lfoppiano changed the title Collect "other" text from header Collect "other" text on request Jan 4, 2025
@lfoppiano lfoppiano marked this pull request as ready for review January 6, 2025 16:35
# Conflicts:
#	grobid-service/src/main/java/org/grobid/service/GrobidRestService.java
#	grobid-service/src/main/java/org/grobid/service/process/GrobidRestProcessFiles.java
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