def __init__(self, ner: Chainer,
                 ner_parser: EntityDetectionParser,
                 ner2: Chainer = None,
                 ner_parser2: EntityDetectionParser = None,
                 **kwargs) -> None:
        """
        Args:
            ner: config for entity detection
            ner_parser: component deeppavlov.models.entity_extraction.entity_detection_parser
            ner2: config of additional entity detection model (ensemble of ner and ner2 models gives better
                entity detection quality than single ner model)
            ner_parser2: component deeppavlov.models.entity_extraction.entity_detection_parser
            **kwargs:
        """
        self.ner = ner
        self.ner_parser = ner_parser
        self.ner2 = ner2
        self.ner_parser2 = ner_parser2

        Args:
            ner: config for entity detection
            ner_parser: component deeppavlov.models.entity_extraction.entity_detection_parser
            ner2: config of additional entity detection model (ensemble of ner and ner2 models gives better
                entity detection quality than single ner model)
            ner_parser2: component deeppavlov.models.entity_extraction.entity_detection_parser
            **kwargs:
        
deeppavlov/models/entity_extraction/ner_chunker.py