# gaussic/text-classification-cnn-rnn

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/gaussic-text-classification-cnn-rnn).**

4,301 stars · 1,462 forks · Python · MIT

## Links

- GitHub: https://github.com/gaussic/text-classification-cnn-rnn
- awesome-repositories: https://awesome-repositories.com/repository/gaussic-text-classification-cnn-rnn.md

## Topics

`chinese` `classification` `cnn` `rnn` `tensorboard` `tensorflow` `text-classification`

## Description

This project is a TensorFlow-based supervised text categorizer designed for Chinese natural language processing. It utilizes a hybrid neural network architecture that combines convolutional and recurrent layers to map raw Chinese text to predefined categories.

The system integrates convolutional neural networks for local feature extraction and recurrent neural networks for analyzing sequential dependencies. It employs character-level tokenization and word embeddings to represent text as numerical tensors.

The implementation covers the end-to-end machine learning pipeline, including text preprocessing, iterative model training with dropout regularization, and predictive performance measurement using loss and accuracy metrics. It also includes utilities for tracking training progress and maintaining model state through checkpoints.

## Tags

### Artificial Intelligence & ML

- [Chinese Text Classifiers](https://awesome-repositories.com/f/artificial-intelligence-ml/chinese-text-classifiers.md) — Provides a specialized machine learning tool for assigning categories to Chinese text documents.
- [Convolutional Neural Networks](https://awesome-repositories.com/f/artificial-intelligence-ml/convolutional-neural-networks.md) — Uses convolutional neural networks to extract local features and n-gram patterns from text.
- [Hybrid CNN-RNN Architectures](https://awesome-repositories.com/f/artificial-intelligence-ml/machine-learning/frameworks/model-construction/neural-network-layers/convolution-layers/layered-architectures/sequential-text-processing-pipelines/hybrid-cnn-rnn-architectures.md) — Employs a hybrid CNN-RNN architecture to analyze both local features and long-term sequential dependencies.
- [Recurrent Neural Networks](https://awesome-repositories.com/f/artificial-intelligence-ml/machine-learning/language-tools/text-classification/recurrent-neural-networks.md) — Implements text classification using recurrent neural networks to capture long-term sequential dependencies. ([source](https://github.com/gaussic/text-classification-cnn-rnn/blob/master/run_rnn.py))
- [Model Training Pipelines](https://awesome-repositories.com/f/artificial-intelligence-ml/neural-networks/model-training-pipelines.md) — Implements a complete training pipeline to optimize neural network weights for predictive accuracy.
- [Recurrent Neural Networks](https://awesome-repositories.com/f/artificial-intelligence-ml/recurrent-neural-networks.md) — Utilizes recurrent neural networks to capture sequential dependencies and temporal patterns in text.
- [Supervised Text Categorizers](https://awesome-repositories.com/f/artificial-intelligence-ml/supervised-text-categorizers.md) — Implements a supervised training and inference pipeline for predicting text labels.
- [Text Classification Models](https://awesome-repositories.com/f/artificial-intelligence-ml/tensorflow-model-development/text-classification-models.md) — Implements a TensorFlow-based model for categorizing Chinese text documents.
- [Text Preprocessing Pipelines](https://awesome-repositories.com/f/artificial-intelligence-ml/text-preprocessing-pipelines.md) — Provides a pipeline to convert raw Chinese text into fixed-length numerical sequences. ([source](https://github.com/gaussic/text-classification-cnn-rnn#readme))
- [Text Classification Training](https://awesome-repositories.com/f/artificial-intelligence-ml/custom-model-training/detection-model-training/convolutional-neural-network-training/text-classification-training.md) — Trains convolutional neural networks specifically for the task of text document classification. ([source](https://github.com/gaussic/text-classification-cnn-rnn/blob/master/README.md))
- [Dropout Regularization](https://awesome-repositories.com/f/artificial-intelligence-ml/dropout-regularization.md) — Employs dropout regularization to prevent overfitting and improve model generalization.
- [Iterative Training](https://awesome-repositories.com/f/artificial-intelligence-ml/machine-learning/infrastructure/machine-learning-training/training-configuration-management/training-epoch-configurations/iterative-training.md) — Implements iterative training loops to optimize model weights over multiple epochs.
- [Model Performance Evaluators](https://awesome-repositories.com/f/artificial-intelligence-ml/model-performance-evaluators.md) — Quantifies classifier quality using loss and accuracy metrics across training and validation sets.
- [Model Prediction Evaluation](https://awesome-repositories.com/f/artificial-intelligence-ml/model-prediction-evaluation.md) — Calculates loss and accuracy metrics by comparing model predictions against ground truth labels. ([source](https://github.com/gaussic/text-classification-cnn-rnn#readme))
- [Model Training](https://awesome-repositories.com/f/artificial-intelligence-ml/model-training.md) — Follows iterative procedures to train predictive models on prepared text datasets. ([source](https://github.com/gaussic/text-classification-cnn-rnn/blob/master/run_cnn.py))
- [Training Weight Adjustments](https://awesome-repositories.com/f/artificial-intelligence-ml/model-weight-management/dynamic-weight-updates/training-weight-adjustments.md) — Updates internal connection strengths using gradient descent to minimize prediction error. ([source](https://github.com/gaussic/text-classification-cnn-rnn/blob/master/run_rnn.py))
- [TensorFlow Graph Execution](https://awesome-repositories.com/f/artificial-intelligence-ml/tensorflow-graph-execution.md) — Defines the mathematical operations and layer connectivity using TensorFlow's computational graphs.
- [Convolutional Text Features](https://awesome-repositories.com/f/artificial-intelligence-ml/text-feature-extraction/convolutional-text-features.md) — Extracts hierarchical spatial patterns and local features from text using CNNs.
- [LLM Category Assignments](https://awesome-repositories.com/f/artificial-intelligence-ml/text-sequence-processing/sequence-category-assignments/llm-category-assignments.md) — Assigns predefined categories to input text using a trained neural network model. ([source](https://github.com/gaussic/text-classification-cnn-rnn/blob/master/README.md))

### Development Tools & Productivity

- [Word Embeddings](https://awesome-repositories.com/f/development-tools-productivity/character-level-text-processing/word-embeddings.md) — Maps Chinese characters to numerical vectors for representation within the neural network.

### Part of an Awesome List

- [Text Classification](https://awesome-repositories.com/f/awesome-lists/ai/text-classification.md) — Implementation examples for news classification using neural networks.
