code to compute syntactic surprisal at words in a given sentence