def __init__()

in src/smjsindustry/finance/processor_config.py [0:0]


    def __init__(self, nlp_score_types: List[NLPScoreType]):
        """Initializes a ````NLPScorerConfig```` instance."""
        super().__init__(NLP_SCORER)
        self._config = {}
        self._config["processor_type"] = self.processor_type
        self._config["score_types"] = {}
        if not isinstance(nlp_score_types, list):
            nlp_score_types = [nlp_score_types]
        for score_type in nlp_score_types:
            if not isinstance(score_type, NLPScoreType):
                raise TypeError(
                    "An NLPScorerConfig must be initialized with "
                    "either a single NLPScoreType object, or "
                    "a list of NLPScoreType objects."
                )
            self._config["score_types"][score_type.score_name] = score_type.word_list