Embedding policy Feature 'entity_XX' could not be found in feature map

rasa_core.featurizers - Feature ‘entity_time’ could not be found in feature map.

time is a slot and requested_sot in a form

policies:

  • name: EmbeddingPolicy

    epochs: 20

    featurizer:

    • name: FullDialogueTrackerFeaturizer

      state_featurizer:

      • name: LabelTokenizerSingleStateFeaturizer
  • name: FormPolicy

@azizullah2017 can you help me? anyone?

Can you post the content of the entities section of your domain.yml file?

my domain.yml don’t have entities session

@netcarver I have check models/dialogue/domain.yml,entities = [] can you know what wrong with me?

I think you need to read up on the domain.yml format and include your entities in your file.

@Bob Can you share your domain.yml file ?? you have not added entity_time in your domian file in a section of entity list.

@azizullah2017 @netcarver my train domain.yml

slots:

time:
    type: unfeaturized 

when I use keraspolicy, I don’t have this problems

entities:
  - entity_time

add this to your domain.yml file

why I need do this,can you tell me?

I don’t use entity_time slot

because

rasa_core.featurizers - Feature ‘entity_time’ could not be found in feature map.

But The Rasa Core dialogue engine don‘t tell me the details to do this, I also need to do that?

when you use embedding policy, you add entity_XX to you domain.yml even though you don’t need?

Could it be that you have (even accidentally) declared a core training story with the time entity?

There’s an example here. Note how the entities are declared with the intent in the example story.

If you don’t have any entities in your NLU training data, and you don’t have any in your core training stories, I don’t know what else to suggest. Your error message from core does suggest that this entity is being used somewhere.

I am using Embedding policy to train rasa core with stories in the format as below,

* general-greet
 - greet
* rest-inform{ENTITY_NAME: ENTITY_VALUE, ENTITY_NAME: ENTITY_VALUE}
 - rest-recommend{ENTITY_NAME: ENTITY_VALUE, ENTITY_NAME: ENTITY_VALUE}
* booking-inform{ENTITY_NAME: ENTITY_VALUE, ENTITY_NAME: ENTITY_VALUE}
 - booking-book{ENTITY_NAME: ENTITY_VALUE, ENTITY_NAME: ENTITY_VALUE}
* general-thank + general-bye
 - bye+thank

sample ENTITY_NAME - {food, name,area, post, phone number}, ENTITY_VALUE -{european, Vapiano, centre, cb13tz, 02345 65819}

The domain file format has shown below,

slots:
   entity_XX:
       type: text
entities:
- entity_XX

When I use the EmbeddingPolicy, I get the problem that the “Feature ‘entity_XX’ could not be found in feature map.” I have also tried to alter the domain file as like as below and tried to train but still ended with the above problem

slots:
   XX:
      type: text
entities:
- entity_XX

I have trained successfully with the above mentioned story format and an appropriate domain file using keras policy.

Could I get help to solve this issue?