shuffle the lines of a large file
Simon Brunning
simon.brunning at gmail.com
Tue Mar 8 09:13:01 EST 2005
On 7 Mar 2005 06:38:49 -0800, gry at ll.mit.edu <gry at ll.mit.edu> wrote:
> As far as I can tell, what you ultimately want is to be able to extract
> a random ("representative?") subset of sentences.
If this is what's wanted, then perhaps some variation on this cookbook
recipe might do the trick:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/59865
--
Cheers,
Simon B,
simon at brunningonline.net,
http://www.brunningonline.net/simon/blog/
More information about the Python-list
mailing list