notice

This is unreleased documentation for Rasa Documentation Main/Unreleased version.
For the latest released documentation, see the latest version (3.x).

Version: Main/Unreleased

rasa.nlu.utils

write_json_to_file

def write_json_to_file(filename: Text, obj: Any, **kwargs: Any) -> None

Write an object as a json string to a file.

write_to_file

def write_to_file(filename: Text, text: Any) -> None

Write a text to a file.

is_url

def is_url(resource_name: Text) -> bool

Check whether the url specified is a well formed one.

Arguments:

  • resource_name - Remote URL to validate

Returns:

True if valid, otherwise False.