rasa/core/featurizers.py
def prepare_from_domain(self, domain: Domain) -> None:
        """Creates internal vocabularies for user intents
        and bot actions to use for featurization"""
        self.user_labels = domain.intent_states + domain.entity_states
        self.slot_labels = domain.slot_states
        self.bot_labels = domain.action_names

        if self.use_shared_vocab:
            self.bot_vocab = self._create_label_token_dict(self.bot_labels +
                                                           self.user_labels,
                                                           self.split_symbol)
            self.user_vocab = self.bot_vocab
        else:
            self.bot_vocab = self._create_label_token_dict(self.bot_labels,
                                                           self.split_symbol)
            self.user_vocab = self._create_label_token_dict(self.user_labels,
                                                            self.split_symbol)

        self.num_features = (len(self.user_vocab) +
                             len(self.slot_labels) +
                             len(self.bot_vocab))

        self.user_feature_len = len(self.user_vocab)
        self.slot_feature_len = len(self.slot_labels)
Creates internal vocabularies for user intents
        and bot actions to use for featurization
Creates internal vocabularies for user intents
and bot actions to use for featurization
Creates internal vocabularies for user intents and bot actions to use for featurization
def prepare_from_domain(self, domain: Domain) -> None:
        self.user_labels = domain.intent_states + domain.entity_states
        self.slot_labels = domain.slot_states
        self.bot_labels = domain.action_names
        if self.use_shared_vocab:
            self.bot_vocab = self._create_label_token_dict(self.bot_labels +
                                                           self.user_labels,
                                                           self.split_symbol)
            self.user_vocab = self.bot_vocab
        else:
            self.bot_vocab = self._create_label_token_dict(self.bot_labels,
                                                           self.split_symbol)
            self.user_vocab = self._create_label_token_dict(self.user_labels,
                                                            self.split_symbol)
        self.num_features = (len(self.user_vocab) +
                             len(self.slot_labels) +
                             len(self.bot_vocab))
        self.user_feature_len = len(self.user_vocab)
        self.slot_feature_len = len(self.slot_labels)
def prepare_from_domain ( self , domain : Domain ) -> None : self . user_labels = domain . intent_states + domain . entity_states self . slot_labels = domain . slot_states self . bot_labels = domain . action_names if self . use_shared_vocab : self . bot_vocab = self . _create_label_token_dict ( self . bot_labels + self . user_labels , self . split_symbol ) self . user_vocab = self . bot_vocab else : self . bot_vocab = self . _create_label_token_dict ( self . bot_labels , self . split_symbol ) self . user_vocab = self . _create_label_token_dict ( self . user_labels , self . split_symbol ) self . num_features = ( len ( self . user_vocab ) + len ( self . slot_labels ) + len ( self . bot_vocab ) ) self . user_feature_len = len ( self . user_vocab ) self . slot_feature_len = len ( self . slot_labels )
Creates internal vocabularies for user intents
and bot actions to use for featurization
Creates internal vocabularies for user intents and bot actions to use for featurization
"""Creates internal vocabularies for user intents
        and bot actions to use for featurization"""
self
domain
Domain