def _extract_sts(tarpath, target_dirpath=".", tmode="r"):
    """Extract data from the sts tar.gz archive

    Args:
        tarpath (str): Path to tarfile, to be deleted after extraction.
        target_dirpath (str, optional): Directory in which to save
            the extracted files.
        tmode (str, optional): The mode for reading,
            of the form "filemode[:compression]".
        Defaults to "r".

    Returns:
        str: Path to extracted STS Benchmark data.
    """
    with tarfile.open(tarpath, mode=tmode) as t:
        t.extractall(target_dirpath)
        extracted = t.getnames()[0]
    os.remove(tarpath)
    return os.path.join(target_dirpath, extracted)
Extract data from the sts tar.gz archive

    Args:
        tarpath (str): Path to tarfile, to be deleted after extraction.
        target_dirpath (str, optional): Directory in which to save
            the extracted files.
        tmode (str, optional): The mode for reading,
            of the form "filemode[:compression]".
        Defaults to "r".

    Returns:
        str: Path to extracted STS Benchmark data.
    
utils_nlp/dataset/stsbenchmark.py