Skip to content

Commit

Permalink
add segmentation light with references
Browse files Browse the repository at this point in the history
  • Loading branch information
lfoppiano committed Sep 21, 2024
1 parent 2232b2c commit dfc7606
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -520,9 +520,11 @@ project(":grobid-trainer") {
def complexTrainerTasks = [
"train_header" : ["org.grobid.trainer.HeaderTrainer", ""],
"train_header_light" : ["org.grobid.trainer.HeaderTrainer", "light"],
"train_header_light_ref" : ["org.grobid.trainer.HeaderTrainer", "light-ref"],
"train_header_ietf" : ["org.grobid.trainer.HeaderTrainer", "ietf"],
"train_segmentation" : ["org.grobid.trainer.SegmentationTrainer", ""],
"train_segmentation_light" : ["org.grobid.trainer.SegmentationTrainer", "light"],
"train_segmentation_light_ref" : ["org.grobid.trainer.SegmentationTrainer", "light-ref"],
"train_segmentation_ietf" : ["org.grobid.trainer.SegmentationTrainer", "ietf"]
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,8 @@ public static void main(String[] args) throws Exception {
String flavor = args[0];
if (flavor.equalsIgnoreCase("light")) {
theFlavor = Flavor.ARTICLE_LIGHT;
} else if (flavor.equalsIgnoreCase("light-re")) {
theFlavor = Flavor.ARTICLE_LIGHT_WITH_REFERENCES;
} else if (flavor.equalsIgnoreCase("ietf")) {
theFlavor = Flavor.IETF;
} else {
Expand Down

0 comments on commit dfc7606

Please sign in to comment.