block by joyrexus 9789317

Make word pairs from Moby Dick

Generate a list of word pairs from Moby Dick.

Taken from Matt Brocklin’s post on text benchmarks.

Nice use of pipe and sliding_window here!

Install PyToolz before running: pip install toolz.

make_pairs.py