(dirpath, force=False)
Download two multilingual collections of short excerpts of journalistic texts,
    focused on language groups that are very similar and thus more difficult
    to correctly identify.

    Args:
        dirpath (str or :class:`pathlib.Path`)
        force (bool)

    References:
        http://ttg.uni-saarland.de/resources/DSLCC/
Download two multilingual collections of short excerpts of journalistic texts,
    focused on language groups that are very similar and thus more difficult
    to correctly identify.
Download two multilingual collections of short excerpts of journalistic texts focused on language groups that are very similar and thus more difficult to correctly identify .
def download_dslcc_data(dirpath, force=False):
    """
    Download two multilingual collections of short excerpts of journalistic texts,
    focused on language groups that are very similar and thus more difficult
    to correctly identify.

    Args:
        dirpath (str or :class:`pathlib.Path`)
        force (bool)

    References:
        http://ttg.uni-saarland.de/resources/DSLCC/
    """
    dirpath = textacy.utils.to_path(dirpath).resolve()
    for version in [3, 4]:
        name = "dslcc{}".format(version)
        url = "http://scholar.harvard.edu/files/malmasi/files/{}.zip".format(name)
        fpath = textacy.io.download_file(url, dirpath=dirpath, force=force)
        if fpath:
            textacy.io.unpack_archive(fpath, extract_dir=dirpath.joinpath(name))
def download_dslcc_data ( dirpath , force = False ) : dirpath = textacy . utils . to_path ( dirpath ) . resolve ( ) for version in [ 3 , 4 ] : name = "dslcc{}" . format ( version ) url = "http://scholar.harvard.edu/files/malmasi/files/{}.zip" . format ( name ) fpath = textacy . io . download_file ( url , dirpath = dirpath , force = force ) if fpath : textacy . io . unpack_archive ( fpath , extract_dir = dirpath . joinpath ( name ) )