Code examples / Natural Language Processing

Natural Language Processing

Text classification

V3
Text classification from scratch
V2
Review Classification using Active Learning
V3
Text Classification using FNet
V2
Large-scale multi-label text classification
V2
Text classification with Transformer
V2
Text classification with Switch Transformer
V2
Text classification using Decision Forests and pretrained embeddings
V3
Using pre-trained word embeddings
V3
Bidirectional LSTM on IMDB
V3
Data Parallel Training with KerasNLP and tf.distribute

Machine translation

V3
English-to-Spanish translation with KerasNLP
V3
English-to-Spanish translation with a sequence-to-sequence Transformer
V3
Character-level recurrent sequence-to-sequence model

Entailment prediction

V2
Multimodal entailment

Named entity recognition

V3
Named Entity Recognition using Transformers

Sequence-to-sequence

V2
Text Extraction with BERT
V2
Sequence to sequence learning for performing number addition

Text similarity search

V3
Semantic Similarity with KerasNLP
V3
Semantic Similarity with BERT
V3
Sentence embeddings using Siamese RoBERTa-networks

Language modeling

V2
End-to-end Masked Language Modeling with BERT
V2
Pretraining BERT with Hugging Face Transformers

Parameter efficient fine-tuning

V3
Parameter-efficient fine-tuning of GPT-2 with LoRA

Other

V2
Abstractive Text Summarization with BART
V2
Training a language model from scratch with 🤗 Transformers and TPUs
V2
MultipleChoice Task with Transfer Learning
V2
Question Answering with Hugging Face Transformers
V2
Abstractive Summarization with Hugging Face Transformers