Skip to content

Commit 03e4542

Browse files
committed
Flesh out this exception a bit more so we get a better idea of what's going wrong
1 parent eb50467 commit 03e4542

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/edu/stanford/nlp/pipeline/ProtobufAnnotationSerializer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2437,7 +2437,7 @@ private static SemanticGraph fromProto(CoreNLPProtos.DependencyGraph proto, List
24372437
} else {
24382438
token = originalLabels.get(in.getIndex(), in.getEmptyIndex());
24392439
if (token == null) {
2440-
throw new FailedSerializationError("Could not find the token for index " + in.getIndex());
2440+
throw new FailedSerializationError("Could not find the token for index " + in.getIndex() + " empty " + in.getEmptyIndex() + "\n(" + originalLabels.size() + " known labels)");
24412441
}
24422442
}
24432443
IndexedWord word;

0 commit comments

Comments
 (0)