Skip to content

Commit

Permalink
attempted fix of tberg12#9; not tested
Browse files Browse the repository at this point in the history
  • Loading branch information
davidweichiang committed Mar 2, 2018
1 parent 09b92cd commit 00f8db0
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,10 @@ public VerticalSegmentation decode(VerticalModel model) {
currScore = alphas[currIdx][state];
}
}
if (currState == -1) {
System.out.println("warning: vertical segmentation failed");
currIdx = -1;
}
while (currIdx > 0) {
// Loop over lengths, since that's the only ambiguity
int bestSize = -1;
Expand Down Expand Up @@ -243,4 +247,4 @@ private double sum(double a, double b, boolean max) {
}
}

}
}

0 comments on commit 00f8db0

Please sign in to comment.