yongzhuo / Keras-TextClassification

中文长文本分类、短句子分类、多标签分类、两句子相似度(Chinese Text Classification of Keras NLP, multi-label classify, or sentence classify, long or short),字词句向量嵌入层(embeddings)和网络层(graph)构建基类,FastText,TextCNN,CharCNN,TextRNN, RCNN, DCNN, DPCNN, VDCNN, CRNN, Bert, Xlnet, Albert, Attention, DeepMoji, HAN, 胶囊网络-CapsuleNet, Transformer-encode, Seq2seq, SWEM, LEAM, TextGCN
https://blog.csdn.net/rensihui
MIT License
1.78k stars 405 forks source link

xlnet问题 #55

Closed cornorghost closed 3 years ago

cornorghost commented 3 years ago

跑xlnet百度数据集分类任务时,初始化graph时出现 ValueError: Was asked to retrieve layer at index 247 but model only has 129 layers. 怎么解决

yongzhuo commented 3 years ago

已修复,之前写死了提取的层数,默认只支持xlnet-mid