enable label filtering and validation

This commit is contained in:
Jonathan Shook
2023-09-10 17:37:57 -05:00
parent 2d1f23a8d8
commit 17fa8500ab
7 changed files with 54 additions and 10 deletions

View File

@@ -124,6 +124,8 @@ public class Annotators {
public static synchronized void recordAnnotation(Annotation annotation) {
annotation.applyLabelFunction(filter);
annotation.applyLabelFunction(validator);
// sanity check here first
annotation.getLabels();
for (Annotator annotator : getAnnotators()) {
try {
logger.trace(() -> "calling annotator " + annotator.getClass().getAnnotation(Service.class).selector());