def _initialize_detection_correction_tab()

in src/ui/ui.py [0:0]


    def _initialize_detection_correction_tab(self):
        """Initialize the widgets of the detection correction tab in the general input vertical section.

        Args:
            None

        Returns:
            None

        """

        self.add_sub_title_1 = widgets.Output()
        self.add_sub_title_1.append_stdout("Add detection")

        self.add_name = widgets.Text(
            placeholder="Aspirin 30Mg", description="Write name", disabled=False
        )
        self.add_category = widgets.Dropdown(
            placeholder="Choose entity",
            options=[
                "DRUG",
                "CONDITION",
                "AGE",
                "STATE",
                "ETHNICITY",
                "RACE",
                "TIMEDAYS",
                "TIMEYEARS",
                "GENDER",
            ],
            description="Category:",
            ensure_option=True,
            disabled=False,
        )
        self.add_button = widgets.Button(description="Highlight")
        self.add_button.on_click(self._button_helper_record_name)

        self.add_box = widgets.HBox(
            [self.add_name, self.add_category, self.add_button],
            layout=layouts.SUB_DETECT_BOX_LAYOUT,
        )

        self.remove_sub_title_2 = widgets.Output()
        self.remove_sub_title_2.append_stdout("Remove detection")

        self.remove_name = widgets.Dropdown(
            placeholder="",
            options=[],
            description="Name:",
            ensure_option=True,
            disabled=False,
        )
        self.remove_button = widgets.Button(description="Remove")
        self.remove_button.on_click(self._button_helper_remove_name)

        self.remove_box = widgets.HBox(
            [self.remove_name, self.remove_button], layout=layouts.SUB_DETECT_BOX_LAYOUT
        )

        self.detection_correction_tab = widgets.VBox(
            [
                self.add_sub_title_1,
                self.add_box,
                self.remove_sub_title_2,
                self.remove_box,
            ],
            layout=layouts.DETECT_BOX_LAYOUT,
        )