{"id":49453559,"url":"https://github.com/jiegzhan/multi-class-text-classification-cnn-rnn","last_synced_at":"2026-05-16T16:01:40.157Z","repository":{"id":47674550,"uuid":"72225778","full_name":"jiegzhan/multi-class-text-classification-cnn-rnn","owner":"jiegzhan","description":"Classify Kaggle San Francisco Crime Description into 39 classes. Build the model with CNN, RNN (GRU and LSTM) and Word Embeddings on Tensorflow.","archived":false,"fork":false,"pushed_at":"2018-03-23T17:46:57.000Z","size":92871,"stargazers_count":592,"open_issues_count":29,"forks_count":263,"subscribers_count":53,"default_branch":"master","last_synced_at":"2024-04-15T23:01:01.883Z","etag":null,"topics":["cnn","embeddings","kaggle","lstm","rnn","tensorflow","text-classification"],"latest_commit_sha":null,"homepage":"https://www.kaggle.com/c/sf-crime/data","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jiegzhan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-10-28T16:55:06.000Z","updated_at":"2024-04-09T18:52:40.000Z","dependencies_parsed_at":"2022-09-03T23:11:54.066Z","dependency_job_id":null,"html_url":"https://github.com/jiegzhan/multi-class-text-classification-cnn-rnn","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jiegzhan/multi-class-text-classification-cnn-rnn","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiegzhan%2Fmulti-class-text-classification-cnn-rnn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiegzhan%2Fmulti-class-text-classification-cnn-rnn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiegzhan%2Fmulti-class-text-classification-cnn-rnn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiegzhan%2Fmulti-class-text-classification-cnn-rnn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jiegzhan","download_url":"https://codeload.github.com/jiegzhan/multi-class-text-classification-cnn-rnn/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiegzhan%2Fmulti-class-text-classification-cnn-rnn/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33109461,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","embeddings","kaggle","lstm","rnn","tensorflow","text-classification"],"created_at":"2026-04-30T04:01:03.700Z","updated_at":"2026-05-16T16:01:40.150Z","avatar_url":"https://github.com/jiegzhan.png","language":"Python","funding_links":[],"categories":["🤖 AI \u0026 Machine Learning"],"sub_categories":[],"readme":"### Project: Classify Kaggle San Francisco Crime Description\n\n### Highlights:\n  - This is a **multi-class text classification (sentence classification)** problem.\n  - The goal of this project is to **classify Kaggle San Francisco Crime Description into 39 classes**.\n  - This model was built with **CNN, RNN (LSTM and GRU) and Word Embeddings** on **Tensorflow**.\n\n### Data: [Kaggle San Francisco Crime](https://www.kaggle.com/c/sf-crime/data)\n  - Input: **Descript**\n  - Output: **Category**\n  - Examples:\n\n    Descript   | Category\n    -----------|-----------\n    GRAND THEFT FROM LOCKED AUTO|LARCENY/THEFT\n    POSSESSION OF NARCOTICS PARAPHERNALIA|DRUG/NARCOTIC\n    AIDED CASE, MENTAL DISTURBED|NON-CRIMINAL\n    AGGRAVATED ASSAULT WITH BODILY FORCE|ASSAULT\n    ATTEMPTED ROBBERY ON THE STREET WITH A GUN|ROBBERY\n    \n### Train:\n  - Command: python3 train.py train_data.file train_parameters.json\n  - Example: ```python3 train.py ./data/train.csv.zip ./training_config.json```\n\n### Predict:\n  - Command: python3 predict.py ./trained_results_dir/ new_data.csv\n  - Example: ```python3 predict.py ./trained_results_1478563595/ ./data/small_samples.csv```\n  \n### Reference:\n - [Implement a cnn for text classification in tensorflow](http://www.wildml.com/2015/12/implementing-a-cnn-for-text-classification-in-tensorflow/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjiegzhan%2Fmulti-class-text-classification-cnn-rnn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjiegzhan%2Fmulti-class-text-classification-cnn-rnn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjiegzhan%2Fmulti-class-text-classification-cnn-rnn/lists"}