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

Customisable page range for header processing #282

Open
Aazhar opened this issue Jan 29, 2018 · 0 comments · May be fixed by #1224
Open

Customisable page range for header processing #282

Aazhar opened this issue Jan 29, 2018 · 0 comments · May be fixed by #1224
Assignees

Comments

@Aazhar
Copy link
Collaborator

Aazhar commented Jan 29, 2018

Feature needed to give possibility to set the page range for header extraction, now the default value is set to 2 :

public String processHeader(String inputFile, boolean consolidate, BiblioItem result) {
    GrobidAnalysisConfig config = new GrobidAnalysisConfig.GrobidAnalysisConfigBuilder()
        .startPage(0)
        .endPage(2)
        .consolidateHeader(consolidate)
        .build();
    return processHeader(inputFile, config, result);
}

Also related to this issue which gives an example : #281

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants