import spacy label_field = Field(sequential=False, use_vocab=False, batch_first=True) text_field = Field(tokenize='spacy', lower=True, include_lengths=True, batch_first=True) fields = [('label', label_field) , ('title', text_field)]
表格数据集
训练,有效,测试 = TabularDataset.splits(train='train.xlsx', validation='valid.xlsx', test='test.xlsx',format='xlsx', fields=fields, skip_header=True)
我真的解决不了这个问题