rasa/core/registry.py
def policy_from_module_path(module_path: Text) -> Type['Policy']:
    """Given the name of a policy module tries to retrieve the policy."""
    from rasa.core import utils

    try:
        return utils.class_from_module_path(
            module_path, lookup_path="rasa.core.policies")
    except ImportError:
        raise ImportError("Cannot retrieve policy from path '{}'"
                          "".format(module_path))
Given the name of a policy module tries to retrieve the policy.
Given the name of a policy module tries to retrieve the policy.
Given the name of a policy module tries to retrieve the policy .
def policy_from_module_path(module_path: Text) -> Type['Policy']:
    from rasa.core import utils
    try:
        return utils.class_from_module_path(
            module_path, lookup_path="rasa.core.policies")
    except ImportError:
        raise ImportError("Cannot retrieve policy from path '{}'"
                          "".format(module_path))
def policy_from_module_path ( module_path : Text ) -> Type [ 'Policy' ] : from rasa . core import utils try : return utils . class_from_module_path ( module_path , lookup_path = "rasa.core.policies" ) except ImportError : raise ImportError ( "Cannot retrieve policy from path '{}'" "" . format ( module_path ) )
Given the name of a policy module tries to retrieve the policy.
Given the name of a policy module tries to retrieve the policy .
"""Given the name of a policy module tries to retrieve the policy."""
module_path
Text