‘’’ python train_init.py /home/bugsbun/anaconda3/envs/rasa/lib/python2.7/site-packages/pykwalify/core.py:99: UnsafeLoaderWarning: The default ‘Loader’ for ‘load(stream)’ without further arguments can be unsafe. Use ‘load(stream, Loader=ruamel.yaml.Loader)’ explicitly if that is OK. Alternatively include the following in your code:
import warnings warnings.simplefilter(‘ignore’, ruamel.yaml.error.UnsafeLoaderWarning)
In most other cases you should consider using ‘safe_load(stream)’
data = yaml.load(stream)
Traceback (most recent call last):
File “train_init.py”, line 26, in
validation_split = 0.2)
File “/home/bugsbun/anaconda3/envs/rasa/lib/python2.7/site-packages/rasa_core/agent.py”, line 501, in train
raise Exception("Passing a file name to agent.train(...)
is "
Exception: Passing a file name to agent.train(...)
is not supported anymore. Rather load the data with data = agent.load_data(file_name)
and pass it to agent.train(data)
.
‘’’