rasa/core/domain.py
def compare_with_specification(self, path: Text) -> bool:
        """Compares the domain spec of the current and the loaded domain.

        Throws exception if the loaded domain specification is different
        to the current domain are different."""

        loaded_domain_spec = self.load_specification(path)
        states = loaded_domain_spec["states"]
        if states != self.input_states:
            missing = ",".join(set(states) - set(self.input_states))
            additional = ",".join(set(self.input_states) - set(states))
            raise InvalidDomain(
                "Domain specification has changed. "
                "You MUST retrain the policy. " +
                "Detected mismatch in domain specification. " +
                "The following states have been \n"
                "\t - removed: {} \n"
                "\t - added:   {} ".format(missing, additional))
        else:
            return True
Compares the domain spec of the current and the loaded domain.

        Throws exception if the loaded domain specification is different
        to the current domain are different.
Compares the domain spec of the current and the loaded domain.
Throws exception if the loaded domain specification is different
to the current domain are different.
Compares the domain spec of the current and the loaded domain . Throws exception if the loaded domain specification is different to the current domain are different .
def compare_with_specification(self, path: Text) -> bool:
        loaded_domain_spec = self.load_specification(path)
        states = loaded_domain_spec["states"]
        if states != self.input_states:
            missing = ",".join(set(states) - set(self.input_states))
            additional = ",".join(set(self.input_states) - set(states))
            raise InvalidDomain(
                "Domain specification has changed. "
                "You MUST retrain the policy. " +
                "Detected mismatch in domain specification. " +
                "The following states have been \n"
                "\t - removed: {} \n"
                "\t - added:   {} ".format(missing, additional))
        else:
            return True
def compare_with_specification ( self , path : Text ) -> bool : loaded_domain_spec = self . load_specification ( path ) states = loaded_domain_spec [ "states" ] if states != self . input_states : missing = "," . join ( set ( states ) - set ( self . input_states ) ) additional = "," . join ( set ( self . input_states ) - set ( states ) ) raise InvalidDomain ( "Domain specification has changed. " "You MUST retrain the policy. " + "Detected mismatch in domain specification. " + "The following states have been \n" "\t - removed: {} \n" "\t - added:   {} " . format ( missing , additional ) ) else : return True
Compares the domain spec of the current and the loaded domain.
Compares the domain spec of the current and the loaded domain .
"""Compares the domain spec of the current and the loaded domain.

        Throws exception if the loaded domain specification is different
        to the current domain are different."""
self
path
Text