5_word2vec.py 文件源码

python
阅读 16 收藏 0 点赞 0 评论 0

项目:udacity-deep-learning 作者: runhani 项目源码 文件源码
def maybe_download(filename, expected_bytes):
  """Download a file if not present, and make sure it's the right size."""
  if not os.path.exists(filename):
    filename, _ = urlretrieve(url + filename, filename)
  statinfo = os.stat(filename)
  if statinfo.st_size == expected_bytes:
    print('Found and verified %s' % filename)
  else:
    print(statinfo.st_size)
    raise Exception(
      'Failed to verify ' + filename + '. Can you get to it with a browser?')
  return filename
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号