code to generate news corpus