azure.com.cn
注 册 商: 北京新网数码信息技术有限公司HTTP/1.1 200 OK 缓存控制:private 文件大小:23195 类型:text/html 服务器:WWW Server/1.1 设置Cookie:ASPSESSIONIDQSSTBSCQ=BPIBJCACDBFFNMHMMHIAONLC; path=/ 语言环境:ASP.NET X-Safe-Firewall: zhuji.360.cn 1.0.8.8 F1W1 访问时间:2019年09月20日 16:50:30 页面编码:utf-8
Azure 时光荏苒开发之路首页标签域名出售中您现在的位置: 网站首页安装Keras备忘conda install tensorflowconda install keras=2.1.5发布: 2018-7-5 分类: 开发之路 阅读: 次 评论: 0次 Unity3D手游开发中特殊文件夹如下图所示列举出Unity3D手游开发中的特殊文件夹:发布: 2018-6-28 分类: 网络收藏 阅读: 次 评论: 0次 C++中获取当前LUA堆栈信息LuaPlus::LuaState* pState = ScriptManager::Instance().GetState();if(pState){lua_getglobal(pState->GetCState(), "debug");lua_getfield(pState->GetCState(), -1, "traceback");int iError = lua_pcall(pState->GetCState(),0,1,0);const char* sz = lua_tostring(pState->GetCState(), -1);MessageBox(NULL, sz, "", MB_OK);}发布: 2018-6-27 分类: 开发之路 阅读: 次 评论: 0次 关于data_formatdata_format这是一个无可奈何的问题,在如何表示一组彩色图片的问题上,Theano和TensorFlow发生了分歧,'th'模式,也即Theano模式会把100张RGB三通道的16×32(高为16宽为32)彩色图表示为下面这种形式(100,3,16,32),Caffe采取的也是这种方式。第0个维度是样本维,代表样本的数目,第1个维度是通道维,代表颜色通道数。后面两个就是高和宽了。这种theano风格的数据组织方法,称为“channels_first”,即通道维靠前。发布: 2018-6-26 分类: 网络收藏 阅读: 次 评论: 0次 关于张量的表述张量张量,或tensor,是本文档会经常出现的一个词汇,在此稍作解释。发布: 2018-6-26 分类: 网络收藏 阅读: 次 评论: 0次 Word2Vec尝试ExportZhWiki.pyfrom gensim.corpora.wikicorpus import extract_pages,filter_wiki import bz2file import re from opencc import OpenCCfrom tqdm import tqdm import codecsimport jieba CC = OpenCC('t2s') wiki = extract_pages(bz2file.open('zhwiki-20180620-pages-articles-multistream.xml.bz2')) def wiki_replace(d): s = d[1] s = re.sub(':*{\|[\s\S]*?\|}', '', s) s = re.sub('<gallery>[\s\S]*?</gallery>', '', s) s = re.sub('(.){{([^{}\n]*?\|[^{}\n]*?)}}', '\\1[[\\2]]', s) s = filter_wiki(s) s = re.sub('\* *\n|\'{2,}', '', s) s = re.sub('\n+', '\n', s) s = re.sub('\n[:;]|\n +', '\n', s) s = re.sub('\n==', '\n\n==', s)s = re.sub('[ -~]','',s)s = re.sub(',', ',\n', s)s = re.sub('。', '。\n', s)#punctuation = """!?。"#$%&'()〈〉*+-/《:∶²;<·=>@[\]^_`{|〡}~⦅⦆「」、、〃》「」『』【】〔〕〖〗〘〙〚〛〜〝〞〟〰〾〿–—‘'‛“”„‟…‧﹏"""#re_punctuation = "[{}]+".format(punctuation)#s = re.sub(re_punctuation, "", s)s = re.sub('\n\n', '\n', s)s = re.sub('\n\n', '\n', s)s = re.sub('\n\n', '\n', s)s = re.sub('\n\n', '\n', s)s = re.sub('\n\n', '\n', s)s = re.sub('\n\n', '\n', s)s = re.sub('\n\n', '\n', s)s = re.sub('\n\n', '\n', s)s = re.sub('\n\n', '\n', s)s = re.sub('\t', '', s)s = re.sub(' ', '', s)return CC.convert(s).strip()i = 0 f = codecs.open('jieba-zhwiki-articles.txt', 'w', encoding='utf-8') w = tqdm(wiki, desc=u'已获取0篇文章')for d in w:i += 1 if not re.findall('^[a-zA-Z]+:', d[0]) and d[0] and not re.findall(u'^#', d[1]): s = wiki_replace(d)if s!='':data=list(jieba.cut(s,cut_all=False))readline=' '.join(data)f.write(readline)if i % 100
© 2010 - 2020 网站综合信息查询 同IP网站查询 相关类似网站查询 网站备案查询网站地图 最新查询 最近更新 优秀网站 热门网站 全部网站 同IP查询 备案查询
2025-07-07 09:10, Process in 0.0156 second.