![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
pytorch
大猛犸
这个作者很懒,什么都没留下…
展开
-
torchtext datasets总结
综述所有dataset继承自torchtext.data.Dataset,torchtext.data.Dataset继承自torch.utils.data.Dataset,他们都必须实现split和iters方法approach1 splits:# set up fieldsTEXT = data.Field(lower=True, include_lengths=True, batch_first=True)LABEL = data.Field(sequential=False)# mak原创 2020-12-02 09:18:18 · 2302 阅读 · 0 评论 -
good post
bert:https://towardsdatascience.com/bert-explained-state-of-the-art-language-model-for-nlp-f8b21a9b6270原创 2020-11-30 21:57:41 · 177 阅读 · 0 评论 -
Contrastive Code Representation Learning
# 安装环境安装nodejs下载nodejsnpm root -g # 输出默认路径更改npm仓库路径npm config set prefix "D:\repository\node\node_global" #存储路径npm config set cache "D:\repository\node\node_cache" #缓存路径在contrastive_code代码执行npm install # 自动安装依赖pip install -e "." # 安装python依原创 2020-11-21 09:12:08 · 371 阅读 · 1 评论 -
解决安装torchtext报错
ERROR: Command errored out with exit status 1: command: 'd:\env\python\python35\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\zhaoz\\AppData\\Local\\Temp\\pip-...原创 2020-03-29 12:00:11 · 1751 阅读 · 0 评论