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 46 hierarchical text classification tools tracked. 2 score above 50 (established tier). The highest-rated is kk7nc/HDLTex at 58/100 with 278 stars.

Get all 46 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

58
Established
2 richliao/textClassifier

Text classifier for Hierarchical Attention Networks for Document Classification

51
Established
3 RandolphVI/Hierarchical-Multi-Label-Text-Classification

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

49
Emerging
4 yumeng5/LOTClass

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

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

Hierarchical Attention Networks | a PyTorch Tutorial to Text Classification

48
Emerging
6 Alibaba-NLP/HiAGM

Hierarchy-Aware Global Model for Hierarchical Text Classification

47
Emerging
7 Renovamen/Text-Classification

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

46
Emerging
8 yumeng5/WeSTClass

[CIKM 2018] Weakly-Supervised Neural Text Classification

45
Emerging
9 qtuantruong/hierarchical-attention-networks

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

45
Emerging
10 yumeng5/WeSHClass

[AAAI 2019] Weakly-Supervised Hierarchical Text Classification

44
Emerging
11 dheeraj7596/ConWea

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

43
Emerging
12 yuzhimanhua/MATCH

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

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

Hierarchical Attention Networks for document classification

42
Emerging
14 Hazoom/bert-han

Hierarchical-Attention-Network

41
Emerging
15 morningmoni/HiLAP

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

39
Emerging
16 yuzhimanhua/MICoL

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

38
Emerging
17 4AI/AGN

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

38
Emerging
18 lizhaoliu-Lec/CNLE

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

37
Emerging
19 shengc/tf-han

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

36
Emerging
20 giannisnik/mpad

Message Passing Attention Networks for Document Understanding

35
Emerging
21 sumehta/FBMA

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

35
Emerging
22 seongminp/LIME

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

34
Emerging
23 whitepurple/HBM-loss-for-HTC

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

32
Emerging
24 acadTags/Automated-Social-Annotation

Joint Multi-label Attention Network (JMAN)

32
Emerging
25 paulrinckens/han_for_doc_classification

Hierarchical Attention Networks for Document Classification

32
Emerging
26 yuzhimanhua/MetaCat

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

31
Emerging
27 SashankMeka1/Hierarchical-Softmax

Simple Pytorch Extension to use hierarchical softmax for NLP tasks.

31
Emerging
28 yuzhimanhua/HIMECat

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

29
Experimental
29 yuzhimanhua/HiGitClass

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

29
Experimental
30 LukeZhuang/Hierarchical-Attention-Network

Implementation for "Hierarchical Attention Networks for Document Classification"

28
Experimental
31 LCS2-IIITD/Hyphen

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

27
Experimental
32 yuzhimanhua/FUTEX

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

27
Experimental
33 himanii777/3HAN_pytorch

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

22
Experimental
34 ChaosCodes/UNTL

EMNLP'2022: Unsupervised Non-transferable Text Classification

21
Experimental
35 yuzhimanhua/MotifClass

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

21
Experimental
36 marcomoldovan/hierarchical-language-modeling

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

20
Experimental
37 yuzhimanhua/Location-Inference

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

20
Experimental
38 havelhakimi/TLA

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

19
Experimental
39 FKarl/HYDRA

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

18
Experimental
40 Shiina18/HiTIN-standalone

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

17
Experimental
41 uw-bionlp/ards

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

17
Experimental
42 havelhakimi/LHA-HTC

Code for the paper "Label hierarchy alignment for improved hierarchical text...

13
Experimental
43 havelhakimi/HTLA-n

Code for the paper "Local Hierarchy-Aware Text-Label Association for...

13
Experimental
44 Shristirajpoot/GeoTagNet

🔍 Predict geolocation from social media posts using advanced NLP and deep...

12
Experimental
45 dheeraj7596/META

Code for the paper "META: Metadata-Empowered Weak Supervision for Text...

12
Experimental
46 linhaowei1/HMC

The code of Hierarchical Multi-label Classification (HMC). It is a final...

11
Experimental