notice
This is unreleased documentation for Rasa Open Source Documentation Master/Unreleased version.
For the latest released documentation, see the latest version (2.3.x).
rasa.nlu.utils
relative_normpath
Return the path of file relative to path
.
module_path_from_object
Returns the fully qualified class path of the instantiated object.
write_json_to_file
Write an object as a json string to a file.
write_to_file
Write a text to a file.
is_model_dir
Checks if the given directory contains a model and can be safely removed.
specifically checks if the directory has no subdirectories and if all files have an appropriate ending.
is_url
Check whether the url specified is a well formed one.
Arguments:
resource_name
- Remote URL to validate
Returns:
True
if valid, otherwise False
.
remove_model
Removes a model directory and all its content.