Will be sharing the code next week. The basic idea is to find the embeddings of sentences and then finding the distance in the latent space to see if there is too big a jump in context.
So we can see how as we are appending sentences and getting the embedding we get the movement of the story in the latent space.