Skip to content

Commit 8426309

Browse files
committed
update readme
1 parent 86c9659 commit 8426309

File tree

1 file changed

+73
-0
lines changed

1 file changed

+73
-0
lines changed

README.md

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,74 @@
1+
# Spam Comment Detector
12

3+
This repository is based on the flask framework web application, with the help of Machine Learning, the application is capable to detect that the comment is spam or not.
4+
5+
## File Structure
6+
7+
📦Spam-comment-detector-with-flask
8+
┣ 📂static
9+
┃ ┗ 📂js
10+
┃ ┣ 📜app.js
11+
┃ ┣ 📜form.js
12+
┃ ┗ 📜particles.js
13+
┣ 📂templates
14+
┃ ┗ 📜form.html
15+
┣ 📜SPAM.csv
16+
┣ 📜app.py
17+
┗ 📜requirements.txt
18+
19+
## Flask
20+
21+
A microframework based on Werkzeug. It's extensively documented
22+
and follows best practice patterns.
23+
24+
## Model
25+
26+
#### CountVectorizer
27+
28+
Convert a collection of text documents to a matrix of token counts.This implementation produces a sparse representation of the counts using
29+
scipy.sparse.coo_matrix.
30+
31+
If you do not provide an a-priori dictionary and you do not use an analyzer
32+
that does some kind of feature selection then the number of features will
33+
be equal to the vocabulary size found by analyzing the data.
34+
35+
#### Train Test Split
36+
37+
Split arrays or matrices into random train and test subsets. Quick utility that wraps input validation and ``next(ShuffleSplit().split(X, y))`` and application to input data into a single call for splitting (and optionally subsampling) data in a oneliner.
38+
39+
#### Naive Bayes classifier for multinomial models
40+
41+
The multinomial Naive Bayes classifier is suitable for classification with
42+
discrete features (e.g., word counts for text classification). The
43+
multinomial distribution normally requires integer feature counts. However,
44+
in practice, fractional counts such as tf-idf may also work.
45+
46+
### Requirements.txt
47+
48+
- Click==7.0
49+
50+
- Flask==1.1.2
51+
52+
- pandas==1.1.0
53+
54+
- sklearn==0.0
55+
56+
- joblib==0.16.0
57+
58+
- gunicorn==20.0.4
59+
60+
- itsdangerous==1.1.0
61+
62+
- Jinja2==2.10.3
63+
64+
- MarkupSafe==1.1.1
65+
66+
- Werkzeug==0.16.0
67+
68+
### GUI
69+
70+
<img title="" src="file:///guiimages/mainscreen.png" alt="">
71+
72+
<img title="" src="file:///guiimages/spamscreen.png" alt="">
73+
74+
<img title="" src="file:///guiimages/hamscreen.png" alt="">

0 commit comments

Comments
 (0)