Hierarchical Text Classification NLP Tools

Tools and methods for classifying text into hierarchical label structures with parent-child relationships. Includes attention mechanisms, reinforcement learning, and hierarchy-aware loss functions for multi-level classification. Does NOT include flat multi-label classification, weakly-supervised methods without explicit hierarchy modeling, or general text classification without hierarchical structure.

There are 41 hierarchical text classification tools tracked. 1 score above 50 (established tier). The highest-rated is kk7nc/HDLTex at 54/100 with 278 stars and 21 monthly downloads.

Get all 41 projects as JSON

curl "https://pt-edge.onrender.com/api/v1/datasets/quality?domain=nlp&subcategory=hierarchical-text-classification&limit=20"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.

# Tool Score Tier
1 kk7nc/HDLTex

HDLTex: Hierarchical Deep Learning for Text Classification

54
Established
2 richliao/textClassifier

Text classifier for Hierarchical Attention Networks for Document Classification

44
Emerging
3 RandolphVI/Hierarchical-Multi-Label-Text-Classification

The code of CIKM'19 paper《Hierarchical Multi-label Text Classification: An...

42
Emerging
4 yumeng5/LOTClass

[EMNLP 2020] Text Classification Using Label Names Only: A Language Model...

41
Emerging
5 sgrvinod/a-PyTorch-Tutorial-to-Text-Classification

Hierarchical Attention Networks | a PyTorch Tutorial to Text Classification

41
Emerging
6 Alibaba-NLP/HiAGM

Hierarchy-Aware Global Model for Hierarchical Text Classification

40
Emerging
7 Renovamen/Text-Classification

PyTorch implementation of some text classification models (HAN, fastText,...

39
Emerging
8 qtuantruong/hierarchical-attention-networks

TensorFlow implementation of the paper "Hierarchical Attention Networks for...

38
Emerging
9 yumeng5/WeSTClass

[CIKM 2018] Weakly-Supervised Neural Text Classification

38
Emerging
10 yumeng5/WeSHClass

[AAAI 2019] Weakly-Supervised Hierarchical Text Classification

37
Emerging
11 dheeraj7596/ConWea

Code for the paper "Contextualized Weak Supervision for Text Classification"

36
Emerging
12 yuzhimanhua/MATCH

MATCH: Metadata-Aware Text Classification in A Large Hierarchy (WWW'21)

36
Emerging
13 vietnh1009/Hierarchical-attention-networks-pytorch

Hierarchical Attention Networks for document classification

35
Emerging
14 Hazoom/bert-han

Hierarchical-Attention-Network

34
Emerging
15 morningmoni/HiLAP

Code for paper "Hierarchical Text Classification with Reinforced Label...

32
Emerging
16 4AI/AGN

Official Code for Merging Statistical Feature via Adaptive Gate for Improved...

31
Emerging
17 yuzhimanhua/MICoL

Metadata-Induced Contrastive Learning for Zero-Shot Multi-Label Text...

31
Emerging
18 lizhaoliu-Lec/CNLE

Official code release for CNLE: Co-attention network with label embedding...

30
Emerging
19 shengc/tf-han

TensorFlow Implementation For [Hierarchical Attention Networks for Document...

29
Experimental
20 sumehta/FBMA

Code for the WWW '19 paper "Event Detection using Hierarchical Multi-Aspect...

28
Experimental
21 giannisnik/mpad

Message Passing Attention Networks for Document Understanding

28
Experimental
22 seongminp/LIME

Code for "LIME: Weakly Supervised Text Classification Without Seeds" and...

27
Experimental
23 whitepurple/HBM-loss-for-HTC

[ACL 2024 Findings] Hierarchy-aware Biased Bound Margin Loss Function for...

25
Experimental
24 paulrinckens/han_for_doc_classification

Hierarchical Attention Networks for Document Classification

25
Experimental
25 acadTags/Automated-Social-Annotation

Joint Multi-label Attention Network (JMAN)

25
Experimental
26 SashankMeka1/Hierarchical-Softmax

Simple Pytorch Extension to use hierarchical softmax for NLP tasks.

24
Experimental
27 yuzhimanhua/MetaCat

Minimally Supervised Categorization of Text with Metadata (SIGIR'20)

24
Experimental
28 yuzhimanhua/HIMECat

Hierarchical Metadata-Aware Document Categorization under Weak Supervision (WSDM'21)

22
Experimental
29 yuzhimanhua/HiGitClass

HiGitClass: Keyword-Driven Hierarchical Classification of GitHub...

22
Experimental
30 LukeZhuang/Hierarchical-Attention-Network

Implementation for "Hierarchical Attention Networks for Document Classification"

21
Experimental
31 yuzhimanhua/FUTEX

Weakly Supervised Multi-Label Classification of Full-Text Scientific Papers (KDD'23)

20
Experimental
32 LCS2-IIITD/Hyphen

(NeurIPS 2022) Official Implementation of Public Wisdom Matters!...

20
Experimental
33 himanii777/3HAN_pytorch

I implemented 3HAN(Hierarchical Attention Network)for fake news detection in...

15
Experimental
34 ChaosCodes/UNTL

EMNLP'2022: Unsupervised Non-transferable Text Classification

14
Experimental
35 yuzhimanhua/MotifClass

MotifClass: Weakly Supervised Text Classification with Higher-order Metadata...

14
Experimental
36 marcomoldovan/hierarchical-language-modeling

We address the task of learning contextualized word, sentence and document...

13
Experimental
37 yuzhimanhua/Location-Inference

RATE: Overcoming Noise and Sparsity of Textual Features in Real-Time...

13
Experimental
38 havelhakimi/TLA

Code for the paper "Modeling Text-Label Alignment for Hierarchical Text...

12
Experimental
39 FKarl/HYDRA

This repository contains the implementation of our paper "HYDRA: A...

12
Experimental
40 Shiina18/HiTIN-standalone

Yet another and a standalone implementation of HiTIN: Hierarchy-aware Tree...

10
Experimental
41 uw-bionlp/ards

A PyTorch Wrapper of Hierarchical Attention Network with Sentence Objectives...

10
Experimental