NewsFeed
所属分类:数学计算
开发工具:JavaScript
文件大小:14KB
下载次数:0
上传日期:2022-12-08 00:53:06
上 传 者:
sh-1993
说明: 基于用户兴趣使用贝叶斯分类器预测相关新闻的Web应用程序
(Web app using Bayes Classifier to predict relevant news based on user interests)
文件列表:
additional_modules.py (686, 2019-12-10)
main.py (1307, 2019-12-10)
requirements.txt (422, 2019-12-10)
static (0, 2019-12-10)
static\bayes.js (7593, 2019-12-10)
static\feed-script.js (2426, 2019-12-10)
static\news-script.js (4197, 2019-12-10)
static\require.js (1952, 2019-12-10)
static\script-base.js (868, 2019-12-10)
static\style.css (896, 2019-12-10)
views (0, 2019-12-10)
views\about.html (548, 2019-12-10)
views\auth-setup.html (831, 2019-12-10)
views\base.html (2068, 2019-12-10)
views\feed.html (504, 2019-12-10)
views\firebase-setup.html (520, 2019-12-10)
views\hello_template.html (630, 2019-12-10)
views\loggedIn.html (911, 2019-12-10)
views\login.html (393, 2019-12-10)
views\train.html (1181, 2019-12-10)
## News Feed application
Main purpose of this application is to provide user with news he/she will like. I use
[Naive Bayes Classifier](https://en.wikipedia.org/wiki/Naive_Bayes_classifier) to classify the text.
### APIs & libraries used:
1. Handling User Auth and storing data – [Firebase](https://github.com/firebase/)
2. Retrieving news – [HackerNews Official API (also hosted on Firebase)](https://github.com/HackerNews/API)
3. Working with browser cookies – [js-cookie API](https://github.com/js-cookie/js-cookie)
4. Training recommendation model – [bayes NPM module](https://www.npmjs.com/package/bayes)
5. Implementing clientside require(‘module’) – [tarp.require](https://github.com/letorbi/tarp.require) JS module (analogue to *Browserify* and *require.js*)
The structure of project is simple:
1. **views** folder – HTML templates for each page
2. **static** folder – JS and CSS files
3. **main.py** file – routing setup. You can see there what HTML page is used for each route.
----
Live version can be found at https://newsfeed.seliaev.com
近期下载者:
相关文件:
收藏者: