def forward(self, hidden_states, segment_index):
    '\n        Input:\n            hidden_states[batch, seg_len, hidden_dim]\n            segment_index[batch, seq_len]\n        '
    seg_states = hidden_states[:, (self.cls_in_input + self.rel_in_input):, :][(segment_index == 0), :]
    return self.sg_fc(seg_states)
Input:
    hidden_states[batch, seg_len, hidden_dim]
    segment_index[batch, seq_len]
def forward(self, hidden_states, segment_index):
    '\n        Input:\n            hidden_states[batch, seg_len, hidden_dim]\n            segment_index[batch, seq_len]\n        '
    seg_states = hidden_states[:, (self.cls_in_input + self.rel_in_input):, :][(segment_index == 0), :]
    return self.sg_fc(seg_states)