Version: 3.x

rasa.nlu.utils

write_json_to_file

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

Write an object as a json string to a file.

write_to_file

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

Write a text to a file.

is_url

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.