
python自然语言处理
文章平均质量分 64
snow5618
梦在远方,路在脚下,初心不忘,方可抵达。
展开
-
chatgpt catgpt
如何使用gpt原创 2023-03-28 16:00:11 · 10519 阅读 · 2 评论 -
Hierarchical Co-Attention for Visual Question Answering----代码细读
分层共同注意力代码解读本文主要是对分层共同注意力的其中一篇代码解读,该代码不是原作者写的,原作者用的是torch,源码地址:https://github.com/jiasenlu/HieCoAttenVQA本文用到的源码地址:https://github.com/karunraju/VQA1. 总体代码结构代码结构主要包含,谁是父类,谁是子类,谁调用谁…等,我将代码的结构,用思维导图表示,如下:详细如下:接下来,分别介绍每个文件。2. dataset.py相应的注释在代码中已标注原创 2020-09-14 18:23:23 · 1039 阅读 · 0 评论 -
创建词云报错“NLTK python error: “TypeError: 'dict_keys' object is not subscriptable””
正确如下%pythonfrom nltk.corpus import movie_reviewsfrom nltk.corpus import stopwordsfrom nltk import FreqDistimport stringsw = set(stopwords.words('english'))punctuation = set(string.punctuatio...原创 2018-09-11 17:27:29 · 485 阅读 · 0 评论