#122 · Primary category: NLP Tools & Text Processing
multi-class-text-classification-cnn-rnn
Classify Kaggle San Francisco Crime Description into 39 classes. Build the model with CNN, RNN (GRU and LSTM) and Word Embeddings on Tensorflow.
Project last updated:06/06/26
GitHub Stars
602
Forks
258
Contributors
4
License
Apache-2.0
Why we included this project
Most text-classification tutorials stop at a single model snippet, but this repo carries the job through to the end. It trains a hybrid TextCNN + GRU network on the Kaggle San Francisco Crime dataset, mapping free-text incident descriptions into 39 crime categories, then shows how to export the model and run predictions on new data. The train and predict scripts, saved vocabulary, and label mappings make it a workable template for anyone building a sentence classifier on their own labeled text. It is also a useful reference for teams weighing CNN against RNN (GRU/LSTM) architectures for short-text classification, since the code demonstrates how both approaches fit together in Keras.
Articles for this project
No articles for this project yet.
To suggest a topic or contribute an article, contact us.
Related projects in this category
flair
A very simple framework for state-of-the-art Natural Language Processing (NLP)
compromise
modest natural-language processing
tokenizers
💥 Fast State-of-the-Art Tokenizers optimized for Research and Production
CoreNLP
CoreNLP: A Java suite of core NLP tools for tokenization, sentence segmentation, NER, parsing, coreference, sentiment analysis, etc.
Chinese-Word-Vectors
100+ Chinese Word Vectors 上百种预训练中文词向量