write processed corpus