Fake-or-Fact

所属分类:其他
开发工具:Python
文件大小:0KB
下载次数:0
上传日期:2023-05-01 20:56:49
上 传 者sh-1993
说明:  一个用于检测假新闻的新闻分析器,
(A News Analyzer to detect fake news,)

文件列表:
DTree.py (3449, 2019-06-09)
LSTMfinal_model.py (5601, 2019-06-09)
Project_Proposal.pdf (464607, 2019-06-09)
Project_Report.pdf (288796, 2019-06-09)
RandomForest.py (1911, 2019-06-09)
RandomTree.py (4304, 2019-06-09)
credible.csv (367, 2019-06-09)
data/ (0, 2019-06-09)
data/.DS_Store (6148, 2019-06-09)
data/fake news data - Shiyi.zip (20285202, 2019-06-09)
data/fake2.txt (17693, 2019-06-09)
data/fake_html/ (0, 2019-06-09)
data/fake_html/article0.html (337611, 2019-06-09)
data/fake_html/article1.html (52953, 2019-06-09)
data/fake_html/article11.html (75460, 2019-06-09)
data/fake_html/article12.html (55823, 2019-06-09)
data/fake_html/article13.html (621539, 2019-06-09)
data/fake_html/article14.html (56625, 2019-06-09)
data/fake_html/article15.html (59670, 2019-06-09)
data/fake_html/article17.html (128874, 2019-06-09)
data/fake_html/article18.html (244058, 2019-06-09)
data/fake_html/article2.html (69127, 2019-06-09)
data/fake_html/article21.html (71984, 2019-06-09)
data/fake_html/article23.html (97714, 2019-06-09)
data/fake_html/article24.html (87881, 2019-06-09)
data/fake_html/article25.html (16254, 2019-06-09)
data/fake_html/article26.html (158703, 2019-06-09)
data/fake_html/article27.html (148076, 2019-06-09)
data/fake_html/article3.html (51434, 2019-06-09)
data/fake_html/article31.html (41413, 2019-06-09)
data/fake_html/article34.html (52543, 2019-06-09)
data/fake_html/article35.html (129023, 2019-06-09)
data/fake_html/article36.html (56333, 2019-06-09)
data/fake_html/article37.html (54232, 2019-06-09)
data/fake_html/article38.html (55823, 2019-06-09)
data/fake_html/article39.html (212993, 2019-06-09)
data/fake_html/article4.html (117408, 2019-06-09)
data/fake_html/article41.html (65996, 2019-06-09)
... ...

# Fake-or-Fact A News Analyzer to detect fake news Here's a video demo: https://www.youtube.com/watch?v=JDM_5WDHOfc&feature=youtu.be [![Alt text for your video](http://img.youtube.com/vi/JDM_5WDHOfc/0.jpg)](https://www.youtube.com/watch?v=JDM_5WDHOfc&feature=youtu.be) ### prerequisite outside libraries if using RandomTree.py, RandomForest.py, genCrossValid.py, then Numpy and Scipy are required: - Numpy ~~v1.11.1~~ v1.16.4 - Scipy v0.17.1 - Scikit-learn v.0.18.1 - NLTK v3.2.1 - Theano (for LSTM model) v1.0.4 Install/Upgrade existing libraries: **$ sudo pip install lib_name (--upgrade)** ### If you want to generate the data set for cross-validation [LINK - wikipedia for cross-validation](https://en.wikipedia.org/wiki/Cross-validation_(statistics)) in genCrossValid.py, genData(k, file, writeToFile) can generate the datasets for k-fold cross validation --parameters k: number of folds, fedault 10 file: the path of the file writeToFile: Boolean, wether write the cross-validation data to files or not. If true, the method will generate 2*k files, where "ntrain.csv" contains the training set for n-th cross validation and "ntest.csv" contains the testing set for n-th cross-validation --return: list for training sets and list of testing sets (all in Numpy's nd-array) ### To run the application after downloading the source code Install Packages Listed Above If Necessary Go to webAWS folder, type $ ./run or $ python application.py on terminal for python 2.7. For python3, please run the application by $ python3 application.py Version Notation The master contains the complete version of this project, which is expected to run in python 3. However, if you don't have python 3, a python 2.7 version is provided in the branch. Please note that python 2.7 version doesn't have LSTM model involved.

近期下载者

相关文件


收藏者