Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
lfoppiano committed Jan 4, 2025
1 parent 0099897 commit b90e134
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,6 @@ public Document processing(File inputPdf,
return processing(inputPdf, null, config);
}

/*public Document processing(File inputPdf,
String flavor,
GrobidAnalysisConfig config) throws Exception {
DocumentSource documentSource =
DocumentSource.fromPdf(inputPdf, config.getStartPage(), config.getEndPage(),
config.getPdfAssetPath() != null, true, false);
return processing(documentSource, flavor, config);
}*/

public Document processing(File inputPdf,
String md5Str,
GrobidAnalysisConfig config) throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public boolean accept(File dir, String name) {
String token = null;
if (ii != -1) {
token = line.substring(0, ii);
// unicode normalisation of the token - it should not be necessary if the training data
// Unicode normalisation of the token - it should not be necessary if the training data
// has been gnerated by a recent version of grobid
token = UnicodeUtil.normaliseTextAndRemoveSpaces(token);
}
Expand Down

0 comments on commit b90e134

Please sign in to comment.