-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from subashcs/develop
Develop
- Loading branch information
Showing
9 changed files
with
1,104 additions
and
615 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
testenv | ||
env | ||
.DS_Store | ||
.vscode | ||
GoogleNews-vectors-negative300.bin.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,27 @@ | ||
# AdCategorizationAPI | ||
# AdCategorization Model | ||
Categorizes ads based on text content | ||
|
||
## Tools Used | ||
- Python 3.11.5 | ||
## Input | ||
Text content | ||
|
||
## Output | ||
Category of the text (post) | ||
|
||
## Training model locally | ||
1. Clone the repository | ||
2. Create a virtual env and run | ||
``` | ||
pip install -r requirement.txt | ||
``` | ||
3. Download the `GoogleNews-vectors-negative300.bin.gz` data file and keep it on the root directory of the project. | ||
4. You can run the jupyter notebook `trainingModel.ipynb` file on any supporting editor or jupyter notebook itself. | ||
|
||
## Running the API | ||
To run the API locally, you need to run the flask server using command: | ||
``` | ||
python main.py | ||
``` | ||
|
||
## License | ||
A comparative study of text categorization for advertisement classification © 2019 by Subash Chandra Sapkota is licensed under CC BY 4.0. | ||
To view a copy of this license, visit LICENSE file. |
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
gensim==4.3.2 | ||
jupyter_client==8.3.1 | ||
jupyter_core==5.3.2 | ||
matplotlib==3.8.0 | ||
nltk==3.8.1 | ||
numpy==1.26.0 | ||
openpyxl==3.1.2 | ||
pandas==2.1.1 | ||
pickleshare==0.7.5 | ||
Pillow==10.0.1 | ||
scikit-learn==1.3.1 | ||
scipy==1.11.2 | ||
Flask==2.3.3 |
Large diffs are not rendered by default.
Oops, something went wrong.