linyiSearcher:基于python3搭建了一个简单的搜索引擎

上传者: 42120550 | 上传时间: 2022-12-07 20:06:18 | 文件大小: 7.03MB | 文件类型: ZIP
为了完成我的信息检索选修课大作业,写下了这个简单的小项目。 这里是一个python3 实现的简易的搜索引擎 我把它取名叫linyiSearcher 所需要的python依赖包在requirements.txt中 可以使用 pip install -r requirements.txt 一次性安装全部 一共分成3部分完成 1_spider.py 是一个爬虫, 爬取搜索引擎的语料库 2_clean_data_and_make_index 是对爬下来的数据 进行一些清晰工作,并且将数据存入数据库,建立索引 这里使用了 sqlite数据库,为了方便数据和项目一同携带 3_searcher.py 简易的web后端, 实现了 1 在网页输入搜索关键字, 在后端接收到关键字 2 对关键字进行分词 3 在索引中查找和关键字有关的文档 4 按照余弦相似度 对文档进行排序 5 把相近的文档展示出来 自己的知

文件下载

资源详情

[{"title":"( 43 个子文件 7.03MB ) linyiSearcher:基于python3搭建了一个简单的搜索引擎","children":[{"title":"linyiSearcher-master","children":[{"title":".ipynb_checkpoints","children":[{"title":"2_clean_data_make_index-checkpoint.ipynb <span style='color:#111;'> 85.00KB </span>","children":null,"spread":false}],"spread":true},{"title":"3_searcher.py <span style='color:#111;'> 2.69KB </span>","children":null,"spread":false},{"title":"COMMON.py <span style='color:#111;'> 740B </span>","children":null,"spread":false},{"title":"requirements.txt <span style='color:#111;'> 978B </span>","children":null,"spread":false},{"title":".idea","children":[{"title":"libraries","children":[{"title":"R_User_Library.xml <span style='color:#111;'> 123B </span>","children":null,"spread":false}],"spread":true},{"title":"misc.xml <span style='color:#111;'> 297B </span>","children":null,"spread":false},{"title":"dataSources.local.xml <span style='color:#111;'> 454B </span>","children":null,"spread":false},{"title":"workspace.xml <span style='color:#111;'> 28.47KB </span>","children":null,"spread":false},{"title":"dataSources.xml <span style='color:#111;'> 595B </span>","children":null,"spread":false},{"title":"linyiSearcher.iml <span style='color:#111;'> 585B </span>","children":null,"spread":false},{"title":".name <span style='color:#111;'> 13B </span>","children":null,"spread":false},{"title":"modules.xml <span style='color:#111;'> 312B </span>","children":null,"spread":false},{"title":"vcs.xml <span style='color:#111;'> 180B </span>","children":null,"spread":false}],"spread":true},{"title":"2_clean_data_make_index.ipynb <span style='color:#111;'> 96.61KB </span>","children":null,"spread":false},{"title":"__pycache__","children":[{"title":"COMMON.cpython-37.pyc <span style='color:#111;'> 755B </span>","children":null,"spread":false}],"spread":true},{"title":"data","children":[{"title":"front","children":[{"title":"js","children":[{"title":"bootstrap.bundle.js <span style='color:#111;'> 217.69KB </span>","children":null,"spread":false},{"title":"jquery.min.js <span style='color:#111;'> 68.28KB </span>","children":null,"spread":false},{"title":"bootstrap.js <span style='color:#111;'> 128.55KB </span>","children":null,"spread":false},{"title":"bootstrap.bundle.min.js <span style='color:#111;'> 76.79KB </span>","children":null,"spread":false},{"title":"bootstrap.js.map <span style='color:#111;'> 244.70KB </span>","children":null,"spread":false},{"title":"bootstrap.min.js.map <span style='color:#111;'> 185.79KB </span>","children":null,"spread":false},{"title":"bootstrap.min.js <span style='color:#111;'> 56.71KB </span>","children":null,"spread":false},{"title":"bootstrap.bundle.min.js.map <span style='color:#111;'> 304.64KB </span>","children":null,"spread":false},{"title":"bootstrap.bundle.js.map <span style='color:#111;'> 392.82KB </span>","children":null,"spread":false}],"spread":true},{"title":"searcher.html <span style='color:#111;'> 1.40KB </span>","children":null,"spread":false},{"title":"css","children":[{"title":"bootstrap-reboot.css <span style='color:#111;'> 4.78KB </span>","children":null,"spread":false},{"title":"bootstrap.min.css.map <span style='color:#111;'> 611.28KB </span>","children":null,"spread":false},{"title":"bootstrap-reboot.min.css.map <span style='color:#111;'> 31.70KB </span>","children":null,"spread":false},{"title":"bootstrap-reboot.css.map <span style='color:#111;'> 74.69KB </span>","children":null,"spread":false},{"title":"bootstrap.min.css <span style='color:#111;'> 152.11KB </span>","children":null,"spread":false},{"title":"bootstrap-reboot.min.css <span style='color:#111;'> 3.93KB </span>","children":null,"spread":false},{"title":"bootstrap-grid.min.css.map <span style='color:#111;'> 106.00KB </span>","children":null,"spread":false},{"title":"bootstrap-grid.css <span style='color:#111;'> 63.04KB </span>","children":null,"spread":false},{"title":"bootstrap.css.map <span style='color:#111;'> 480.52KB </span>","children":null,"spread":false},{"title":"bootstrap-grid.min.css <span style='color:#111;'> 47.35KB </span>","children":null,"spread":false},{"title":"bootstrap-grid.css.map <span style='color:#111;'> 148.19KB </span>","children":null,"spread":false},{"title":"bootstrap.css <span style='color:#111;'> 187.84KB </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"database.db <span style='color:#111;'> 9.41MB </span>","children":null,"spread":false},{"title":"cleaned_database.csv <span style='color:#111;'> 4.28MB </span>","children":null,"spread":false},{"title":"base_url_list.txt <span style='color:#111;'> 28.95KB </span>","children":null,"spread":false},{"title":"database.csv <span style='color:#111;'> 2.72MB </span>","children":null,"spread":false}],"spread":true},{"title":"1_spider.py <span style='color:#111;'> 3.22KB </span>","children":null,"spread":false},{"title":"readme.md <span style='color:#111;'> 3.10KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明