notice

This is unreleased documentation for Rasa Open Source Documentation Master/Unreleased version.
For the latest released documentation, see the latest version (2.x).

Version: Master/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.