Rewrote `corpus_from_wikipedia` for minimal memory consumption.