Skip to content

Commit

Permalink
fix: Take into account only non empty cell
Browse files Browse the repository at this point in the history
  • Loading branch information
Romuald Rousseau committed Nov 13, 2024
1 parent c40223d commit 64e7020
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,12 @@ private List<String> sampleEntities() {
if (cell.getSymbol().equals("e")) {
entityVector.iadd(cell.getEntityVector());
}

n += Settings.DEFAULT_ENTITY_PROBABILITY;
}
if (n == 0.0f) {
n = N + 1;
}
entityVector.if_lt_then(n, 0.0f, 1.0f);
final var entityList = this.getTable().getSheet().getDocument().getModel().getEntityList();
return IntStream.range(0, entityVector.size).boxed()
Expand Down

0 comments on commit 64e7020

Please sign in to comment.