the code to build sotu corpus from JSON file