MCPcopy
hub / github.com/RasaHQ/rasa / from_file

Method from_file

rasa/shared/core/domain.py:207–209  ·  view source on GitHub ↗

Loads the `Domain` from a YAML file.

(cls, path: Text)

Source from the content-addressed store, hash-verified

205
206 @classmethod
207 def from_file(cls, path: Text) -> "Domain":
208 """Loads the `Domain` from a YAML file."""
209 return cls.from_yaml(rasa.shared.utils.io.read_file(path), path)
210
211 @classmethod
212 def from_yaml(cls, yaml: Text, original_filename: Text = "") -> "Domain":

Calls 1

from_yamlMethod · 0.80