From 54148fee705c2eefc70913892dbdce37046d0cc4 Mon Sep 17 00:00:00 2001 From: Matt Bernstein Date: Tue, 26 Nov 2024 09:49:25 -0500 Subject: [PATCH] typo --- adala/skills/collection/label_studio.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/adala/skills/collection/label_studio.py b/adala/skills/collection/label_studio.py index cf9ca92..c0828b5 100644 --- a/adala/skills/collection/label_studio.py +++ b/adala/skills/collection/label_studio.py @@ -41,10 +41,10 @@ class LabelStudioSkill(TransformSkill): @cached_property def ner_tags(self) -> Iterator[ControlTag]: # check if the input config has NER tag ( + ), and return its `from_name` and `to_name` + interface = LabelInterface(self.label_config) control_tag_names = self.allowed_control_tags or list( interface._controls.keys() ) - interface = LabelInterface(self.label_config) for tag_name in control_tag_names: tag = interface.get_control(tag_name) if ( @@ -56,8 +56,8 @@ def ner_tags(self) -> Iterator[ControlTag]: @cached_property def image_tags(self) -> Iterator[ObjectTag]: # check if any image tags are used as input variables - object_tag_names = self.allowed_object_tags or list(interface._objects.keys()) interface = LabelInterface(self.label_config) + object_tag_names = self.allowed_object_tags or list(interface._objects.keys()) for tag_name in object_tag_names: tag = interface.get_object(tag_name) if tag.tag.lower() == "image":