# richliao/textClassifier

Text classifier for Hierarchical Attention Networks for Document Classification

Repository: https://github.com/richliao/textClassifier
Canonical: https://ross.abutalabs.com/products/textclassifier
Language: Python
License: Apache-2.0
License Family: permissive
Topics: text-classification, hierarchical-attention-networks, attention-mechanism, recurrent-neural-networks, convolutional-neural-networks
Last push: 2021-09-16T14:35:50+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3534, "days_push": 1812, "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 1077, forks 372 (observed 2026-08-28T04:03:29.602263+00:00)

## What it is
A Python repository implementing text classification models including Hierarchical Attention Networks, CNNs for sentence classification, and attentional RNNs using Keras. It serves primarily as reference/educational code accompanying blog posts explaining the architectures.

## Use cases
- classify documents with hierarchical attention networks
- implement attention-based text classification in keras
- learn how hierarchical attention networks work
- train a sentiment classifier on IMDB reviews
- extract attention weights to find important words for classification
- compare CNN vs RNN text classifiers

## When to choose
- learning or teaching attention-based text classification architectures
- need a reference implementation of HAN in Keras
- following the author's blog tutorials on text classification

## When to avoid
- need a production-ready or maintained text classification library
- require modern TensorFlow/PyTorch or Python 3 support
- need state-of-the-art transformer-based classifiers

## Facets
- artifact type: learning-resource
- maturity: maintenance
- function: machine-learning, nlp
- domain: machine-learning, deep-learning
- platform: python
- tags: text-classification, hierarchical-attention-networks, attention-mechanism, keras, lstm, cnn, sentiment-analysis, educational-code, natural-language-processing

## Member repositories
- richliao/textClassifier (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:29.602263+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-30T06:53:17.216174+00:00, confidence not recorded.
  - readme: https://github.com/richliao/textClassifier (fetched 2026-08-28T04:03:29.602263+00:00, sha ecb545f7610e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
