def __create_paired_window__(hypothesis, reference, window_size,
    lamprier_et_al_2007_fix):
    """
    Create a set of pairs of units from each segmentation to go over using a
    window.
    """
    phantom_size = 0
    if lamprier_et_al_2007_fix is False:
        units_ref_hyp = zip(reference, hypothesis)
    else:
        phantom_size = window_size
        phantom_size = 1 if phantom_size <= 0 else phantom_size
        phantom = tuple([0] * phantom_size)
        units_ref_hyp = zip(phantom + reference + phantom, phantom +
            hypothesis + phantom)
    return list(units_ref_hyp), phantom_size
