write probabilities of parses to logprobs.txt