RASA X Путь config.yml не существует. Обязательно используйте расположение по умолчанию ('config.yml') или укажите его с помощью '--config'

я пытался интегрировать rasa в помощник Google: https://blog.rasa.com/going-beyond-hey-google-building-a-rasa-powered-google-assistant/

Затем после rasa train я получаю эту ошибку

(voice_bot) arjun@arjun-Lenovo-ideapad:~/Desktop/rasa_google$ rasa train
/home/arjun/enviro/voice_bot/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:526: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_qint8 = np.dtype([("qint8", np.int8, 1)])
/home/arjun/enviro/voice_bot/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:527: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_quint8 = np.dtype([("quint8", np.uint8, 1)])
/home/arjun/enviro/voice_bot/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:528: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_qint16 = np.dtype([("qint16", np.int16, 1)])
/home/arjun/enviro/voice_bot/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:529: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_quint16 = np.dtype([("quint16", np.uint16, 1)])
/home/arjun/enviro/voice_bot/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:530: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_qint32 = np.dtype([("qint32", np.int32, 1)])
/home/arjun/enviro/voice_bot/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:535: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  np_resource = np.dtype([("resource", np.ubyte, 1)])
The path 'config.yml' does not exist. Please make sure to use the default location ('config.yml') or specify it with '--config'.

Это мои версии:

  • раса (1.1.8)
  • раса-ядро (0.14.5)
  • раса-ядро-SDK (0.14.0)
  • раса-нлу (0.15.1)
  • раса-SDK (1.1.1)
  • раса-х (0.20.0)

person Arjun Bharadwaj    schedule 14.08.2019    source источник
comment
Каков твой вопрос?   -  person David Buck    schedule 14.08.2019
comment
Находится ли config.yml в том же каталоге, что и ваш исполняемый файл? Если он находится в отдельном каталоге cfg или если вы запускаете my_script из другого каталога, вам, возможно, придется сказать my_script.py \ configs \ config.yml ... вы также можете использовать os.chdir (dir_of_config.yml).   -  person aschultz    schedule 14.08.2019
comment
@aschultz, спасибо ... у меня был файл config.yml в другом каталоге ... я изменил его на исполняемый ... теперь он работает   -  person Arjun Bharadwaj    schedule 14.08.2019
comment
как вы изменили каталог как исполняемый файл?   -  person HWJ    schedule 20.11.2019


Ответы (2)


Проблема в том, что текущий рабочий каталог не выбран. Используйте cd, чтобы выбрать рабочую среду. Например: cd C:\Users\Jinu Augustine\Documents\rasabot. Попробуйте rasa train nlu после этого, должно работать.

person Jinu Augustine    schedule 06.08.2020

Тебе просто нужно бежать

rasa init

Это позаботится о настройке вашего рабочего каталога

person Hitham S. AlQadheeb    schedule 11.11.2020