在 domaim.yml 中将 use_entities 设置为 [ ] 时出现 Rasa 错误
Rasa error when set use_entities to [ ] in domaim.yml
我希望某些意图没有任何实体,但根据文档尝试执行此操作时出现错误 https://rasa.com/docs/rasa/domain#ignoring-entities-for-certain-intents
domain.yml 文件
intents:
- greet:
use_entities: []
- goodbye
我收到以下错误
/home/venv/lib/python3.8/site-packages/rasa/shared/utils/io.py:97: UserWarning: Loading domain from 'domain.yml' failed. Using empty domain. Error: 'In the `domain.yml` file, the intent 'greet' cannot have value of `<class 'NoneType'>`. If you have placed a ':' character after the intent's name without adding any additional parameters to this intent then you would need to remove the ':' character. Please see https://rasa.com/docs/rasa/domain for more information on how to correctly add `intents` in the `domain` and https://rasa.com/docs/rasa/domain#intents for examples on when to use the ':' character after an intent's name.'
你只是少了一个缩进:
intents:
- greet:
use_entities: []
- goodbye
我希望某些意图没有任何实体,但根据文档尝试执行此操作时出现错误 https://rasa.com/docs/rasa/domain#ignoring-entities-for-certain-intents
domain.yml 文件
intents:
- greet:
use_entities: []
- goodbye
我收到以下错误
/home/venv/lib/python3.8/site-packages/rasa/shared/utils/io.py:97: UserWarning: Loading domain from 'domain.yml' failed. Using empty domain. Error: 'In the `domain.yml` file, the intent 'greet' cannot have value of `<class 'NoneType'>`. If you have placed a ':' character after the intent's name without adding any additional parameters to this intent then you would need to remove the ':' character. Please see https://rasa.com/docs/rasa/domain for more information on how to correctly add `intents` in the `domain` and https://rasa.com/docs/rasa/domain#intents for examples on when to use the ':' character after an intent's name.'
你只是少了一个缩进:
intents:
- greet:
use_entities: []
- goodbye