Skip to content
Snippets Groups Projects

Add support for listing annotator configs

Merged Amir MOHAMMADI requested to merge annotator into master
12 files
+ 39
16
Compare changes
  • Side-by-side
  • Inline
Files
12
@@ -38,7 +38,7 @@ class FailSafe(Annotator):
@@ -38,7 +38,7 @@ class FailSafe(Annotator):
if not annotations:
if not annotations:
logger.debug(
logger.debug(
"Annotator `%s' returned empty annotations.", annotator)
"Annotator `%s' returned empty annotations.", annotator)
kwargs['annotations'].update(annotations)
kwargs['annotations'].update(annotations or {})
# check if we have all the required annotations
# check if we have all the required annotations
if all(key in kwargs['annotations'] for key in self.required_keys):
if all(key in kwargs['annotations'] for key in self.required_keys):
break
break
Loading