Closed huobenhuo closed 1 year ago
mode = 'test'时报错: File "D:\text_classifier_pytorch\module\Predictor.py", line 124, in predict output = self.model(**batch) TypeError: init() got an unexpected keyword argument 'label'
怎么解决呀
你用的是哪个模型?
TextRNN
补充一下,FastText/TextCNN/TextRCNN/Transformer也都存在这个问题
您好这个问题解决了,是我这里的路径问题,给您添麻烦了
解决了就好~
mode = 'test'时报错: File "D:\text_classifier_pytorch\module\Predictor.py", line 124, in predict output = self.model(**batch) TypeError: init() got an unexpected keyword argument 'label'
怎么解决呀