Spam-Identifier

所属分类:代码编辑器
开发工具:Jupyter Notebook
文件大小:6593KB
下载次数:0
上传日期:2019-01-27 13:48:00
上 传 者sh-1993
说明:  Web应用程序检查新闻标题是否是Clickbait,并决定消息是否是垃圾邮件。
(Web Application To Check If The News Headline Is A Clickbait Or Not And Deciding Wheather A Message Is Spam.)

文件列表:
Portal.html (4967, 2019-01-27)
Screenshots (0, 2019-01-27)
Screenshots\Screenshot (13).png (220824, 2019-01-27)
Screenshots\Screenshot (14).png (282176, 2019-01-27)
Screenshots\Screenshot (15).png (177514, 2019-01-27)
Style.css (2632, 2019-01-27)
UI.js (815, 2019-01-27)
clickbait-app (0, 2019-01-27)
clickbait-app\.ipynb_checkpoints (0, 2019-01-27)
clickbait-app\.ipynb_checkpoints\clickbait-detection-checkpoint.ipynb (21171, 2019-01-27)
clickbait-app\__pycache__ (0, 2019-01-27)
clickbait-app\__pycache__\runner.cpython-36.pyc (921, 2019-01-27)
clickbait-app\__pycache__\runner.cpython-37.pyc (936, 2019-01-27)
clickbait-app\clickbait-detection.ipynb (21171, 2019-01-27)
clickbait-app\clickbaitmodelsklearn.pkl (2185888, 2019-01-27)
clickbait-app\dataset (0, 2019-01-27)
clickbait-app\dataset\clickbait_data (923965, 2019-01-27)
clickbait-app\dataset\non_clickbait_data (856139, 2019-01-27)
clickbait-app\main.py (683, 2019-01-27)
clickbait-app\runner.py (826, 2019-01-27)
clickbait-app\static (0, 2019-01-27)
clickbait-app\static\bulma.min.css (174739, 2019-01-27)
clickbait-app\static\clickbaitmodelsklearn.pkl (2185888, 2019-01-27)
clickbait-app\templates (0, 2019-01-27)
clickbait-app\templates\bottom.html (336, 2019-01-27)
clickbait-app\templates\index.html (1732, 2019-01-27)
clickbait-app\templates\top.html (487, 2019-01-27)
detections (0, 2019-01-27)
detections\.ipynb_checkpoints (0, 2019-01-27)
detections\.ipynb_checkpoints\clickbait-detection-checkpoint.ipynb (21171, 2019-01-27)
detections\Untitled.png (28028, 2019-01-27)
detections\clickbait-detection.ipynb (21171, 2019-01-27)
detections\clickbaitmodelsklearn.pkl (2185888, 2019-01-27)
detections\detect_clickbaits.py (4926, 2019-01-27)
detections\detect_spam_msg.py (4912, 2019-01-27)
detections\model_clickbait.pkl (5437389, 2019-01-27)
detections\model_spam.pkl (1388496, 2019-01-27)
detections\spammail-detection.ipynb (6734, 2019-01-27)
... ...

# IdeaHack-SpamIdentifier ### Web Portal ![](https://github.com/Utkarsh9799/Spam-Identifier/blob/master/Screenshots/Screenshot%20(13).png) ![](https://github.com/Utkarsh9799/Spam-Identifier/blob/master/Screenshots/Screenshot%20(14).png) ![](https://github.com/Utkarsh9799/Spam-Identifier/blob/master/Screenshots/Screenshot%20(15).png) ### Clickbait Checker Web application to check if the news headline is a clickbait or not and deciding wheather a message is spam. ### Requirements * Python modules (- pandas, - numpy, - scipy, - scikit-learn, - pickle, - flask, - pdb, - sys, - os) ### Running the App ********************************************************* < Optional > ********************************************************* You may want to create a virtual environment as follows: 1. Create a virtual environment : ```virtualenv ``` 2. Activate virtual environment : ```source /bin/activate - Linux``` ```\Scripts\activate - Windows``` ********************************************************* ******************************************************** Installing Dependencies (Ignore if already done) pip install jupyter pandas numpy scipy sklearn (jupyter is optional) pip intsall pickle pip install Flask (pdb, sys and os modules installs by default while installing python, in case not you can use pip to install them) To run the app navigate to the project folder in bash and run the following command : ```bash python main.py ``` This will run the app at http://127.0.0.1:8083 ### The Application The model used for prediction of clickbait used a corpus of clickbait and non-cickbait data aggregated from various sources.
The `clickbait-detection.ipnyb` shows the model training and its accuracy. The `clickbaitmodelsklearn.pkl` file stores the serialised object which is used for prediction.
The `main.py` and `runner.py` files host the flask app and score the headline in runtime.


近期下载者

相关文件


收藏者