首页 > 解决方案 > 最新的 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

标签: rasa-nlurasa

解决方案


正如@dragster 所提到的,实体值和类型之间不应该有空格:

## intent:inform
- [NEW YORK](city)
- I am going home to [Detroit](city)

推荐阅读