{"id":22026908,"url":"https://github.com/rituyadav92/lightweighted-cnn-for-document-classification","last_synced_at":"2025-05-07T10:44:06.046Z","repository":{"id":166602460,"uuid":"181043940","full_name":"RituYadav92/Lightweighted-CNN-for-Document-Classification","owner":"RituYadav92","description":"Optimized Text Document Classification","archived":false,"fork":false,"pushed_at":"2020-06-15T02:27:00.000Z","size":5173,"stargazers_count":6,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-31T09:11:15.837Z","etag":null,"topics":["cnn-text-classification","document-classification","optimization"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RituYadav92.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-12T16:21:07.000Z","updated_at":"2025-02-12T01:11:12.000Z","dependencies_parsed_at":"2023-06-15T08:45:13.967Z","dependency_job_id":null,"html_url":"https://github.com/RituYadav92/Lightweighted-CNN-for-Document-Classification","commit_stats":null,"previous_names":["rituyadav92/lightweighted-cnn-for-document-classification"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RituYadav92%2FLightweighted-CNN-for-Document-Classification","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RituYadav92%2FLightweighted-CNN-for-Document-Classification/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RituYadav92%2FLightweighted-CNN-for-Document-Classification/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RituYadav92%2FLightweighted-CNN-for-Document-Classification/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RituYadav92","download_url":"https://codeload.github.com/RituYadav92/Lightweighted-CNN-for-Document-Classification/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252862493,"owners_count":21815866,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cnn-text-classification","document-classification","optimization"],"created_at":"2024-11-30T07:33:04.163Z","updated_at":"2025-05-07T10:44:06.031Z","avatar_url":"https://github.com/RituYadav92.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Light-Weighted CNN for Text Classification\n\n### Dataset Used\nTobacco-3482\n\nCategories in the dataset are:\n\n```['ADVE', 'Email', 'Form', 'Letter', 'Memo', 'News', 'Note', 'Report', 'Resume', 'Scientific']```\n\n### Train Model\n#### To train on Optimized Text CNN\n```python ADAM_optmized_train.py```\n\n#### Lightweight Text CNN\n```python singleADAM_LW_train.py```\n\n#### Lightweight TextCNN with Dual Optimizer\nSwitches from Adam to SGD when a triggering condition is satisfied.\n```python SWAT_LW_train.py```\n\n#### Optional arguments:\n ```python train.py --help```\n\n\n### Evaluate Model\n\nTo evaluate, run below command \n\n```python eval.py --eval_train --checkpoint_dir=\"./runs/trained_model/checkpoints/\"```\n\nTo use your own data, change the eval.py script to load your data.\n\n### Test Model \nTo prediction on new test data, make sure evaluate model is working , Then run below :\n\n```python test.py --out_test --checkpoint_dir=\"./runs/trained_model/checkpoints/\" --test_dir=\"path to test data\"```\n\n### Link to the paper\nFor more details please go through my paper at link: https://arxiv.org/pdf/2004.07922.pdf\n\n### References :\n1. https://github.com/dennybritz/cnn-text-classification-tf\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frituyadav92%2Flightweighted-cnn-for-document-classification","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frituyadav92%2Flightweighted-cnn-for-document-classification","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frituyadav92%2Flightweighted-cnn-for-document-classification/lists"}