#129 · Primary category: NLP Tools & Text Processing
Bert-Multi-Label-Text-Classification
This repo contains a PyTorch implementation of a pretrained BERT model for multi-label text classification.
Project last updated:04/18/23
GitHub Stars
921
Forks
207
Contributors
4
License
MIT
Why we included this project
Multi-label classification is one of those jobs where a solid starting point beats a blank page, and this repo provides exactly that. It takes pretrained BERT and XLNet checkpoints and runs them through a complete PyTorch training setup, with data preprocessing, a learning-rate scheduler, training monitors, and per-label AUC reporting all included. The Jigsaw toxic-comment dataset serves as the worked example, and the README walks you through downloading the tokenizer files, editing a single config, and running three CLI commands that go from raw CSV to a trained classifier. The codebase is compact enough to read end to end, so it is a practical template for adapting the approach to your own labels. One caveat: the pinned transformers 2.5.1 version is older, so expect some dependency work before it runs on a current stack.
Articles for this project
No articles for this project yet.
To suggest a topic or contribute an article, contact us.
Related projects in this category
flair
A very simple framework for state-of-the-art Natural Language Processing (NLP)
compromise
modest natural-language processing
tokenizers
💥 Fast State-of-the-Art Tokenizers optimized for Research and Production
CoreNLP
CoreNLP: A Java suite of core NLP tools for tokenization, sentence segmentation, NER, parsing, coreference, sentiment analysis, etc.
Chinese-Word-Vectors
100+ Chinese Word Vectors 上百种预训练中文词向量