Closed LELE-ZZ closed 1 month ago
请问一下作者 1.为啥bert-bilstm/idcnn-crf训练前五次评价结果都为0自动停止 2.bilstm/idcnn-crf模型训练时报错:Traceback (most recent call last): File "E:/project-NER/main.py", line 67, in dataManager = DataManager(configs, logger) File "E:\project-NER\engines\data.py", line 40, in init self.token2id, self.id2token, self.label2id, self.id2label = self.load_vocab() File "E:\project-NER\engines\data.py", line 61, in load_vocab return self.build_vocab(self.train_file) File "E:\project-NER\engines\data.py", line 93, in build_vocab token2id = dict(zip(tokens, range(1, len(tokens) + 1))) TypeError: unhashable type: 'list'
请问一下作者 1.为啥bert-bilstm/idcnn-crf训练前五次评价结果都为0自动停止 2.bilstm/idcnn-crf模型训练时报错:Traceback (most recent call last): File "E:/project-NER/main.py", line 67, in
dataManager = DataManager(configs, logger)
File "E:\project-NER\engines\data.py", line 40, in init
self.token2id, self.id2token, self.label2id, self.id2label = self.load_vocab()
File "E:\project-NER\engines\data.py", line 61, in load_vocab
return self.build_vocab(self.train_file)
File "E:\project-NER\engines\data.py", line 93, in build_vocab
token2id = dict(zip(tokens, range(1, len(tokens) + 1)))
TypeError: unhashable type: 'list'