# dennybritz/cnn-text-classification-tf

Convolutional Neural Network for Text Classification in Tensorflow

Repository: https://github.com/dennybritz/cnn-text-classification-tf
Canonical: https://ross.abutalabs.com/products/cnn-text-classification-tf
Language: Python
License: Apache-2.0
License Family: permissive
Last push: 2024-04-15T19:15:44+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3935, "days_push": 870, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5685, forks 2726 (observed 2026-08-28T04:09:27.904372+00:00)

## What it is
A simplified TensorFlow implementation of Kim's CNN architecture for sentence classification, accompanying a WildML blog post. It serves primarily as educational reference code for learning how to build CNN-based text classifiers.

## Use cases
- learn how to implement a CNN for text classification in TensorFlow
- reproduce Kim's Convolutional Neural Networks for Sentence Classification paper
- study a minimal text classification training pipeline
- understand CNN filter sizes and dropout for NLP
- tutorial code for deep learning sentence classification

## When to choose
- you want readable reference code to learn CNN text classification
- you are following the accompanying blog post or Kim's paper
- you need a simple starting point for sentence classification experiments

## When to avoid
- you need a production-grade or actively maintained NLP classifier
- you want modern architectures like transformers or pretrained models
- you need support for recent TensorFlow versions without code changes

## Facets
- artifact type: learning-resource
- maturity: maintenance
- function: machine-learning, deep-learning, nlp
- domain: deep-learning, tutorials
- platform: python
- tags: text-classification, cnn, tensorflow, sentence-classification, educational-code, natural-language-processing

## Member repositories
- dennybritz/cnn-text-classification-tf (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:27.904372+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:54:14.139532+00:00, confidence not recorded.
  - readme: https://github.com/dennybritz/cnn-text-classification-tf (fetched 2026-08-28T04:09:27.904372+00:00, sha dedf9da8eed7)
- Data as of 2026-08-30T08:39:29.467469+00:00.
