rasa/model.py
def model_fingerprint(config_file: Text, domain_file: Optional[Text] = None,
                      nlu_data: Optional[Text] = None,
                      stories: Optional[Text] = None) -> Fingerprint:
    """Creates a model fingerprint from its used configuration and training
    data.

    Args:
        config_file: Path to the configuration file.
        domain_file: Path to the models domain file.
        nlu_data: Path to the used NLU training data.
        stories: Path to the used story training data.

    Returns:
        The fingerprint.

    """
    import rasa.core
    import rasa_nlu
    import rasa
    import time

    return {
        FINGERPRINT_CONFIG_KEY: _get_hashes_for_paths(config_file),
        FINGERPRINT_DOMAIN_KEY: _get_hashes_for_paths(domain_file),
        FINGERPRINT_NLU_DATA_KEY: _get_hashes_for_paths(nlu_data),
        FINGERPRINT_STORIES_KEY: _get_hashes_for_paths(stories),
        FINGERPRINT_TRAINED_AT_KEY: time.time(),
        FINGERPRINT_NLU_VERSION_KEY: rasa_nlu.__version__,
        FINGERPRINT_CORE_VERSION_KEY: rasa.__version__,
        FINGERPRINT_RASA_VERSION_KEY: rasa.__version__
    }
Creates a model fingerprint from its used configuration and training
    data.

    Args:
        config_file: Path to the configuration file.
        domain_file: Path to the models domain file.
        nlu_data: Path to the used NLU training data.
        stories: Path to the used story training data.

    Returns:
        The fingerprint.

    
Creates a model fingerprint from its used configuration and training
data.
Creates a model fingerprint from its used configuration and training data .
def model_fingerprint(config_file: Text, domain_file: Optional[Text] = None,
                      nlu_data: Optional[Text] = None,
                      stories: Optional[Text] = None) -> Fingerprint:
    import rasa.core
    import rasa_nlu
    import rasa
    import time
    return {
        FINGERPRINT_CONFIG_KEY: _get_hashes_for_paths(config_file),
        FINGERPRINT_DOMAIN_KEY: _get_hashes_for_paths(domain_file),
        FINGERPRINT_NLU_DATA_KEY: _get_hashes_for_paths(nlu_data),
        FINGERPRINT_STORIES_KEY: _get_hashes_for_paths(stories),
        FINGERPRINT_TRAINED_AT_KEY: time.time(),
        FINGERPRINT_NLU_VERSION_KEY: rasa_nlu.__version__,
        FINGERPRINT_CORE_VERSION_KEY: rasa.__version__,
        FINGERPRINT_RASA_VERSION_KEY: rasa.__version__
    }
def model_fingerprint ( config_file : Text , domain_file : Optional [ Text ] = None , nlu_data : Optional [ Text ] = None , stories : Optional [ Text ] = None ) -> Fingerprint : import rasa . core import rasa_nlu import rasa import time return { FINGERPRINT_CONFIG_KEY : _get_hashes_for_paths ( config_file ) , FINGERPRINT_DOMAIN_KEY : _get_hashes_for_paths ( domain_file ) , FINGERPRINT_NLU_DATA_KEY : _get_hashes_for_paths ( nlu_data ) , FINGERPRINT_STORIES_KEY : _get_hashes_for_paths ( stories ) , FINGERPRINT_TRAINED_AT_KEY : time . time ( ) , FINGERPRINT_NLU_VERSION_KEY : rasa_nlu . __version__ , FINGERPRINT_CORE_VERSION_KEY : rasa . __version__ , FINGERPRINT_RASA_VERSION_KEY : rasa . __version__ }
Creates a model fingerprint from its used configuration and training
data.
Creates a model fingerprint from its used configuration and training data .
"""Creates a model fingerprint from its used configuration and training
    data.

    Args:
        config_file: Path to the configuration file.
        domain_file: Path to the models domain file.
        nlu_data: Path to the used NLU training data.
        stories: Path to the used story training data.

    Returns:
        The fingerprint.

    """
None
config_file
Text
Path to the configuration file.
Path to the configuration file .
domain_file
Optional[Text]
Path to the models domain file.
Path to the models domain file .
nlu_data
Optional[Text]
Path to the used NLU training data.
Path to the used NLU training data .
stories
Optional[Text]
Path to the used story training data.
Path to the used story training data .