BinLiang-NLP / InterGCN-ABSA

[COLING 2020] Jointly Learning Aspect-Focused and Inter-Aspect Relations with Graph Convolutional Networks for Aspect Sentiment Analysis
https://www.aclweb.org/anthology/2020.coling-main.13/
55 stars 7 forks source link

TypeError #5

Open APTX163 opened 2 years ago

APTX163 commented 2 years ago

encoder_layer, pooled_output = self.bert(text_bert_indices, token_type_ids=bert_segments_ids,output_all_encoded_layers=False),会显示TypeError: forward() got an unexpected keyword argument 'output_all_encoded_layers' 如果去掉,则会在运行的时候出错ValueError: expected sequence of length 85 at dim 1 (got 88) 请问怎么解决呢?谢谢

BinLiang-NLP commented 2 years ago

encoder_layer, pooled_output = self.bert(text_bert_indices, token_type_ids=bert_segments_ids,output_all_encoded_layers=False),会显示TypeError: forward() got an unexpected keyword argument 'output_all_encoded_layers' 如果去掉,则会在运行的时候出错ValueError: expected sequence of length 85 at dim 1 (got 88) 请问怎么解决呢?谢谢

Hi, 相关问题已修复, 请运行“git pull”更新代码。 谢谢!