An interactive CLI ArXiv explorer

栏目: IT技术 · 发布时间: 5年前

内容简介:CLI tool for exploring arXiv (inspired by karpathy's brilliant ArXiv Sanity Preserver)The script will create data/pdf/, data/txt/ and data/summary/ directories to hold files downloaded from arXiv. I am also aware that this is a rather stupid way to impleme

cli-arxiv

CLI tool for exploring arXiv (inspired by karpathy's brilliant ArXiv Sanity Preserver)

The script will create data/pdf/, data/txt/ and data/summary/ directories to hold files downloaded from arXiv. I am also aware that this is a rather stupid way to implement a datastore but DBs seem a bit over the top. Text from PDFs are auto-converted on downloaded and are used to suggest future articles to the user. Downloading articles is idempotent.

It uses tfidf with cosine similarity to recommend articles to you. Frequency sum ranking from the tfidf matrix is also implemented and can be switched to by editing the ml/main_ml.py file (set metric="sum_freq"). Please do add other algorithms as you see fit.

If you'd like to alter this code for any reason, please fork it because I will be pushing to this repo from time to time. Cheers!

INSTALL

  • Clone the repo (it uses python 3).
  • Install dependencies.
pip install -r requirements.txt
  • Start the script.
python main.py

ISSUES

  • There may be a few seconds of network delay when browsing new articles for the first time as the script has to go fetch the article list from arXiv. The same holds for first-time article downloads. The script does cache article lists for a while before asking arXiv for an updated list.
  • I should've used an available arXiv API wrapper.

DISCLAIMER

  • This script hits the arXiv web API to function so please do not alter it to spam the arXiv site (though I don't think one can meaningfully impact their servers with this). I take no responsibiltiy for its misuse.

以上所述就是小编给大家介绍的《An interactive CLI ArXiv explorer》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

算法设计与分析导论

算法设计与分析导论

R.C.T.Lee (李家同)、S.S.Tseng、R.C.Chang、Y.T.Tsai / 王卫东 / 机械工业 / 2008-1 / 49.00元

本书在介绍算法时,重点介绍用干设计算法的策略.非常与众不同。书中介绍了剪枝搜索、分摊分析、随机算法、在线算法以及多项式近似方案等相对较新的思想和众多基于分摊分析新开发的算法,每个算法都与实例一起加以介绍,而且每个例子都利用图进行详细解释。此外,本书还提供了超过400幅图来帮助初学者理解。本书适合作为高等院校算法设计与分析课程的高年级本科生和低年级研究生的教材,也可供相美科技人员和专业人七参考使用。一起来看看 《算法设计与分析导论》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

URL 编码/解码
URL 编码/解码

URL 编码/解码