MCPcopy Create free account
hub / github.com/apache/singa / unzip_data

Function unzip_data

examples/rnn/imdb_data.py:106–112  ·  view source on GitHub ↗
(download_dir, data_gz)

Source from the content-addressed store, hash-verified

104
105
106def unzip_data(download_dir, data_gz):
107 data_dir = download_dir + 'aclImdb'
108 if not os.path.exists(data_dir):
109 print("extracting %s to %s" % (download_dir, data_dir))
110 with tarfile.open(data_gz) as tar:
111 tar.extractall(download_dir)
112 return data_dir
113
114
115def strip_html(text):

Callers 1

preprocessFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected