weihuan xia
Results
4
comments of
weihuan xia
readme里面有
_, pooled_output = self.bert(text_bert_indices, token_type_ids=bert_segments_ids, return_dict=False) you can write like this in bert_spc.py.
text_bert_indices, aspect_bert_indices, left_bert_indices, adj = inputs text_len = torch.sum(text_bert_indices != 0, dim=-1) aspect_len = torch.sum(aspect_bert_indices != 0, dim=-1) left_len = torch.sum(left_bert_indices != 0, dim=-1)