Skip to content

Commit

Permalink
Merge pull request #681 from elifesciences/fix-dl-data-generation-spa…
Browse files Browse the repository at this point in the history
…ce-vs-tab

replaced space by tab in DeLFTModel.label
  • Loading branch information
kermitt2 committed Dec 15, 2020
2 parents ba2b767 + e71a8b6 commit 19c3993
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions grobid-core/src/main/java/org/grobid/core/jni/DeLFTModel.java
Expand Up @@ -185,6 +185,9 @@ public String label(String data) {
} catch(ExecutionException e) {
LOGGER.error("DeLFT model " + this.modelName + " labelling failed", e);
}
// In some areas, GROBID currently expects tabs as feature separators.
// (Same as in WapitiModel.label)
result = result.replaceAll(" ", "\t");
return result;
}

Expand Down

0 comments on commit 19c3993

Please sign in to comment.