def _extract_word2vec_vectors(zip_path, dest_filepath):
    """ Extracts word2vec embeddings from bin.gz archive

    Args:
        zip_path: Path to the downloaded compressed file.
        dest_filepath: Final destination file path to the extracted zip file.
    """

    if os.path.exists(zip_path):
        with gzip.GzipFile(zip_path, "rb") as f_in, open(
            dest_filepath, "wb"
        ) as f_out:
            f_out.writelines(f_in)
    else:
        raise Exception("Zipped file not found!")

    os.remove(zip_path)
 Extracts word2vec embeddings from bin.gz archive

    Args:
        zip_path: Path to the downloaded compressed file.
        dest_filepath: Final destination file path to the extracted zip file.
    
utils_nlp/models/pretrained_embeddings/word2vec.py