jasoncao11/nlp-notebook
A PyTorch NLP notebook implementing common tasks including text classification, NER, summarization, and pretrained models like BERT, GPT, and ELECTRA.

This repository provides implementations of core NLP tasks including word embeddings (Word2Vec, GloVe), various text classification models (TextCNN, FastText, TextRCNN, BERT variants), named entity recognition approaches (BERT-CRF, BERT-MRC), text summarization methods (seq2seq, Transformer, GPT), sentence similarity computation, multi-label classification, and relation extraction. All implementations use PyTorch and the Hugging Face Transformers library for pretrained models.