def load_febrl3(return_links=False):
    """Load the FEBRL 3 dataset.

    The Freely Extensible Biomedical Record Linkage (Febrl) package is
    distributed with a dataset generator and four datasets generated
    with the generator. This function returns the third Febrl dataset
    as a :class:`pandas.DataFrame`.

            *"This data set contains 5000 records (2000 originals and
            3000 duplicates), with a maximum of 5 duplicates based on
            one original record (and a Zipf distribution of duplicate
            records). Distribution of duplicates:
            168 originals records have 5 duplicate records
            161 originals records have 4 duplicate records
            212 originals records have 3 duplicate records
            256 originals records have 2 duplicate records
            368 originals records have 1 duplicate record
            1835 originals records have no duplicate record"*

    Parameters
    ----------
    return_links: bool
        When True, the function returns also the true links.

    Returns
    -------
    pandas.DataFrame
        A :class:`pandas.DataFrame` with Febrl dataset3.csv. When
        return_links is True, the function returns also the true
        links. The true links are all links in the lower triangular
        part of the matrix.

    """

    df = _febrl_load_data('dataset3.csv')

    if return_links:
        links = _febrl_links(df)
        return df, links
    else:
        return df
Load the FEBRL 3 dataset.

    The Freely Extensible Biomedical Record Linkage (Febrl) package is
    distributed with a dataset generator and four datasets generated
    with the generator. This function returns the third Febrl dataset
    as a :class:`pandas.DataFrame`.

            *"This data set contains 5000 records (2000 originals and
            3000 duplicates), with a maximum of 5 duplicates based on
            one original record (and a Zipf distribution of duplicate
            records). Distribution of duplicates:
            168 originals records have 5 duplicate records
            161 originals records have 4 duplicate records
            212 originals records have 3 duplicate records
            256 originals records have 2 duplicate records
            368 originals records have 1 duplicate record
            1835 originals records have no duplicate record"*

    Parameters
    ----------
    return_links: bool
        When True, the function returns also the true links.

    Returns
    -------
    pandas.DataFrame
        A :class:`pandas.DataFrame` with Febrl dataset3.csv. When
        return_links is True, the function returns also the true
        links. The true links are all links in the lower triangular
        part of the matrix.