Since the latent variables are meant to capture the hierarchical categorization of the script, we make the assumption that when a higher level script category (for example, z 0 ) is observed with the actual sequence of events (x), determining the immediate lower level category (z 1 ) is a deterministic operation.
similar to VQ-VAEs, we parameterize the individual factors of the posterior, q i (z i = k|pr(z i ), x), as: is an encoding function specific to latent z i and e ij is the jth value em-beddings for z i .