Skip to content

Commit

Permalink
quick fix for #1113
Browse files Browse the repository at this point in the history
  • Loading branch information
kermitt2 committed May 9, 2024
1 parent d123efb commit 83f2c81
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1611,6 +1611,9 @@ public StringBuilder toTEITextPiece(StringBuilder buffer,
Note note = labels2Notes.get(matching.getLeft());
OffsetPosition matchingPosition = matching.getRight();

if (pos >= matchingPosition.start)
break;

List<LayoutToken> before = clusterTokens.subList(pos, matchingPosition.start);
String clusterContentBefore = LayoutTokensUtil.normalizeDehyphenizeText(before);

Expand Down
8 changes: 4 additions & 4 deletions grobid-home/config/grobid.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ grobid:
consolidation:
# define the bibliographical data consolidation service to be used, either "crossref" for CrossRef REST API or
# "glutton" for https://github.com/kermitt2/biblio-glutton
service: "crossref"
#service: "glutton"
#service: "crossref"
service: "glutton"
glutton:
url: "https://cloud.science-miner.com/glutton"
#url: "http://localhost:8080"
#url: "https://cloud.science-miner.com/glutton"
url: "http://localhost:8080"
crossref:
mailto:
# to use crossref web API, you need normally to use it politely and to indicate an email address here, e.g.
Expand Down

0 comments on commit 83f2c81

Please sign in to comment.