split corpus into training/test, add perplexity computations