Skip to content

Commit

Permalink
Re-merge latest fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kermitt2 committed Jul 21, 2016
1 parent d21e54c commit 0465123
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ public Pair<String, Document> processing2(String pdfInput, boolean consolidate,
BiblioItem resHeader, GrobidAnalysisConfig config) {
DocumentSource documentSource = null;
try {
documentSource = DocumentSource.fromPdf(new File(pdfInput), config.getStartPage(), config.getEndPage(),
config.getPdfAssetPath() != null);
documentSource = DocumentSource.fromPdf(new File(pdfInput), config.getStartPage(), config.getEndPage());
Document doc = new Document(documentSource);
doc.addTokenizedDocument(config);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public Segmentation() {
super(GrobidModels.SEGMENTATION);
}

public Document processing(File input, GrobidAnalysisConfig config) {
/*public Document processing(File input, GrobidAnalysisConfig config) {
if (input == null) {
throw new GrobidResourceException("Cannot process pdf file, because input file was null.");
}
Expand All @@ -100,7 +100,8 @@ public Document processing(File input, GrobidAnalysisConfig config) {
config.getPdfAssetPath() != null);
return processing(documentSource, config);
}
}*/

/**
* Segment a PDF document into high level zones: cover page, document header,
* page footer, page header, body, page numbers, biblio section and annexes.
Expand Down
Binary file modified grobid-service/src/main/doc/grobid-service-manual.odt
Binary file not shown.
Binary file modified grobid-service/src/main/doc/grobid-service-manual.pdf
Binary file not shown.

0 comments on commit 0465123

Please sign in to comment.