Is there a way to explicitly declare a slot to be empty in a story?

I’m trying to use a custom slot where it can be featurized into three values, very similar to how this example works: Slots

That example shows how to write stories for the different values the slot can take: [1,0] or [0,1]. But I want to have a story for if my entity fails to get registered, therefore the slot is empty and has a value of [0,0].

Is there a way to write a story that explicitly states that the slot is empty? If I just write a story and don’t have any information about the slots, it seems to cause unexpected behavior.

hey @plurn ! couple of ways you could do this:

  • implement a custom slot class which has a special featurization when it’s unset (e.g. not just zeroes)
  • use a categorical slot and set an initial value for the slot (you can specify that in the domain)
1 Like