Prepare corpus for recommendation