Skip to content

Commit

Permalink
fix regression
Browse files Browse the repository at this point in the history
  • Loading branch information
lfoppiano committed Oct 22, 2024
1 parent b54c567 commit 4172805
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions resources/config/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ tmpPath: "tmp/"
# path to Pub2TEI repository as available at https://github.com/kermitt2/Pub2TEI
pub2teiPath: "../../Pub2TEI/"

gluttonHost: "https://cloud.science-miner.com/glutton"
gluttonHost:
gluttonPort:

# entity-fishing server information for performing entity disambiguation
Expand All @@ -36,7 +36,7 @@ models:
window: 20
nbMaxIterations: 2000

# classifier model, dataset binary (datset or not dataset in the current sentence)
# classifier model, dataset binary (dataset or not dataset in the current sentence)
- name: "dataseer-binary"
engine: "delft"
delft:
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/grobid/core/engines/DatasetParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ public Pair<List<List<Dataset>>, Document> processPDF(File file,
String clusterText = LayoutTokensUtil.toText(cluster.concatTokens());

List<LayoutToken> localTokenization = cluster.concatTokens();
if (CollectionUtils.isNotEmpty(localTokenization))
if (CollectionUtils.isEmpty(localTokenization))
continue;

if (TEIFormatter.MARKER_LABELS.contains(clusterLabel)) {
Expand Down

0 comments on commit 4172805

Please sign in to comment.