def get_window(positions, indices):
    """
    Given a list of lists and an index for each of those lists,
    this returns a list of all of the corresponding values for those
    lists and their respective index.
    """
    return [word_positions[index] for
            word_positions, index in
            zip(positions, indices)]