rasa-nlu - 最新的 Rasa 核心模型未检测到任何实体
问题描述
我遵循了 Rasa 大师班并进行了以下设置:
数据/nlu.md:
## intent:search_provider
- I want to go to a [hospital] (facilitytype)
- I am sick need to go to a [hospital] (facilitytype)
- Can you tell me how to get to a [hospital] (facilitytype)
拉萨火车:
2020-01-17 19:06:36 INFO rasa.model - Data (nlu-config) for NLU model changed.
Core stories/configuration did not change. No need to retrain Core model.
Training NLU model...
2020-01-17 19:06:36 INFO rasa.nlu.training_data.loading - Training data format of /var/folders/2p/c7zvhbtj4dz0p053y49fmr_h0000gp/T/tmphtg4ok5r/68c2a3993fe141b199b22b8cac047519_nlu.md is md
2020-01-17 19:06:36 INFO rasa.nlu.training_data.training_data - Training data stats:
- intent examples: 50 (8 distinct intents)
- Found intents: 'goodbye', 'affirm', 'inform', 'search_provider', 'mood_unhappy', 'greet', 'mood_great', 'deny'
**- entity examples: 0 (0 distinct entities)
- found entities:**
当我运行 nlp 模型时,它检测到正确的意图,但无法提取任何实体,不确定我缺少什么:
下一条消息:
I want to go to a hospital
{
"intent": {
"name": "search_provider",
"confidence": 0.9632793664932251
},
"entities": [],
我的管道在 config.yml 中有以下行:
pipeline: supervised_embeddings
解决方案
正如@dragster 所提到的,实体值和类型之间不应该有空格:
## intent:inform
- [NEW YORK](city)
- I am going home to [Detroit](city)
推荐阅读
- javascript - 仅使用 css 自动将中心 div 左侧和右侧的 div 移动到中心 div 下方
- rust - 如何转换 Clamped
> 使用 Rust 和 web-sys 来 Clamped<&mut [u8]>? - javascript - 调用命令,每次乘以嵌入字段
- image-processing - 在python中计算ci平方距离
- python - 根据 Pandas 系列中的元素创建遮罩
- python - 对带有子列表的可迭代对象的每个元素应用一个函数
- macos - sed RE 错误:重复运算符操作数无效
- python - 尽管使用了各种技术(如包、网格等),但我在 tkinter 上的按钮不会显示……我正在尝试使用“应用”按钮来设置值
- java - 插入或替换仅适用于数据库中的 1 行
- amazon-web-services - AWS Secrets Manager - 在本地 Codebuild 容器中使用密钥