自然语言处理NLP星空智能对话机器人系列:深入理解Transformer自然语言处理 基于BERT模型微调实现句子分类
目录
- 基于BERT模型微调实现句子分类案例实战
- Installing the Hugging Face PyTorch interface
- Importing the modules
- Specifying CUDA as the device for torch
- Loading the dataset
- Creating sentences, label lists, and adding
- Activating the BERT tokenizer
- Processing the data
- Creating attention masks
- Splitting data into training and