arachis'd

This commit is contained in:
sirjonasxx 2020-11-09 01:31:44 +01:00
parent 2e66b8d244
commit c843c4fe76

View File

@ -44,7 +44,8 @@ public class StructurePredictor {
while (index < packet.getBytesLength()) { while (index < packet.getBytesLength()) {
double currentLogScore = dynamic[index - 6].logScore; double currentLogScore = dynamic[index - 6].logScore;
for (TypeChecker typeChecker : typeCheckers) { for (TypeChecker typeChecker : typeCheckers) {
if (typeChecker.canRead(index)) { if (!typeChecker.canRead(index)) continue;
double score = typeChecker.score(index); double score = typeChecker.score(index);
double newScore = currentLogScore + Math.log(score); double newScore = currentLogScore + Math.log(score);
int nextIndex = typeChecker.nextIndex(index) - 6; int nextIndex = typeChecker.nextIndex(index) - 6;
@ -55,7 +56,7 @@ public class StructurePredictor {
newScore newScore
); );
} }
}
} }
index++; index++;
} }