rasa/core/agent.py
def _get_stack_model_directory(model_directory: Text) -> Optional[Text]:
    """Decide whether a persisted model is a stack or a core model.

    Return the root stack model directory if it's a stack model.
    """

    for root, _, files in os.walk(model_directory):
        if "fingerprint.json" in files:
            return root
Decide whether a persisted model is a stack or a core model.

    Return the root stack model directory if it's a stack model.
    
Decide whether a persisted model is a stack or a core model.
Return the root stack model directory if it's a stack model.
Decide whether a persisted model is a stack or a core model . Return the root stack model directory if it ' s a stack model .
def _get_stack_model_directory(model_directory: Text) -> Optional[Text]:
    for root, _, files in os.walk(model_directory):
        if "fingerprint.json" in files:
            return root
def _get_stack_model_directory ( model_directory : Text ) -> Optional [ Text ] : for root , _ , files in os . walk ( model_directory ) : if "fingerprint.json" in files : return root
Decide whether a persisted model is a stack or a core model.
Decide whether a persisted model is a stack or a core model .
"""Decide whether a persisted model is a stack or a core model.

    Return the root stack model directory if it's a stack model.
    """
model_directory
Text