Replaced iter_pairs() with itertools.product(). Added sentence thresholds. (#1)