Computational and cognitive approaches to narratology