• 大小: 26KB
    文件类型: .zip
    金币: 2
    下载: 2 次
    发布日期: 2021-06-17
  • 语言: Python
  • 标签:

资源简介

那些值得读的深度学习论文集合

资源截图

代码片段和文件信息

‘‘‘
Author: doodhwala
Python3 script to fetch the top 100 papers
‘‘‘

import os re requests codecs

directory = ‘papers‘
if not os.path.exists(directory):
    os.makedirs(directory)

papers = []
with codecs.open(‘README.md‘ encoding=‘utf-8‘ mode=‘r‘ buffering=1 errors=‘strict‘) as f:
    lines = f.read().split(‘\n‘)
    heading section_path = ‘‘ ‘‘
    for line in lines:
        if(‘###‘ in line):
            heading = line.strip().split(‘###‘)[1]
            win_restricted_chars = re.compile(r‘[\^\/\\\:\*\?\“<>\|]‘)
            heading = win_restricted_chars.sub(““ heading)
            section_path = os.path.join(directory heading)
            if not os.path.exists(section_path):
                os.makedirs(section_path)
        if(‘[[pdf]]‘ in line):
            # The stars ensure you pick up only the top 100 papers
            # Modify the expression if you want to fetch all other papers as well
            result = re.search(‘\*\*(.*?)\*\*.*?\[\[pdf\]\]\((.*?)\)‘ line)
            if(result):
                paper url = result.groups()
                paper = win_restricted_chars.sub(““ paper)
                # Auto - resume functionality
                if(not os.path.exists(os.path.join(section_path paper + ‘.pdf‘))):
                    print(‘Fetching‘ paper)
                    try:
                        response = requests.get(url)
                        with open(os.path.join(section_path paper + ‘.pdf‘) ‘wb‘) as f:
                            f.write(response.content)
                    except requests.exceptions.RequestException as e:
                        print(“Error: {}“.format(e))

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-10-19 07:28  awesome-deep-learning-papers-master\
     文件           8  2018-10-19 07:28  awesome-deep-learning-papers-master\.gitignore
     文件        2586  2018-10-19 07:28  awesome-deep-learning-papers-master\Contributing.md
     文件       44838  2018-10-19 07:28  awesome-deep-learning-papers-master\README.md
     文件         547  2018-10-19 07:28  awesome-deep-learning-papers-master\ReadingNotes.md
     文件        1649  2018-10-19 07:28  awesome-deep-learning-papers-master\fetch_papers.py
     文件        3435  2018-10-19 07:28  awesome-deep-learning-papers-master\get_authors.py
     文件       30348  2018-10-19 07:28  awesome-deep-learning-papers-master\top100papers.bib

评论

共有 条评论