Skip to content

Commit

Permalink
test/training selection at unit level
Browse files Browse the repository at this point in the history
  • Loading branch information
lfoppiano committed Jun 28, 2019
1 parent 25db572 commit 2b69f84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/org/grobid/trainer/UnitTrainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ public boolean accept(File dir, String name) {

addFeatures(labels, writer, unitTokenPositions, labeledUnit.isUnitLeft());
writer.write("\n");
writer = dispatchExample(trainingOutputWriter, evaluationOutputWriter, splitRatio);
pos++;
}
}
Expand Down
1 change: 1 addition & 0 deletions src/main/java/org/grobid/trainer/ValueTrainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ public boolean accept(File dir, String name) {

addFeatures(labels, writer);
writer.write("\n");
writer = dispatchExample(trainingOutputWriter, evaluationOutputWriter, splitRatio);
pos++;
}
}
Expand Down

0 comments on commit 2b69f84

Please sign in to comment.