def __getitem__(self, index):
    hid = self.id_list[index]
    punchline_w = np.array(self.language_sdk[hid]['punchline_embedding_indexes'])
    punchline_of = np.array(self.word_aligned_openface_sdk[hid]['punchline_features'])
    punchline_cvp = np.array(self.word_aligned_covarep_sdk[hid]['punchline_features'])
    context_w = np.array(self.language_sdk[hid]['context_embedding_indexes'])
    context_of = np.array(self.word_aligned_openface_sdk[hid]['context_features'])
    context_cvp = np.array(self.word_aligned_covarep_sdk[hid]['context_features'])
    x_p = torch.LongTensor(self.padded_punchline_features(punchline_w, punchline_of, punchline_cvp, self.max_sen_len))
    x_c = torch.LongTensor(self.padded_context_features(context_w, context_of, context_cvp, self.max_context_len, self.max_sen_len))
    y = torch.FloatTensor([self.humor_label_sdk[hid]])
    return (x_p, x_c, y)
def __getitem__(self, index):
    hid = self.id_list[index]
    punchline_w = np.array(self.language_sdk[hid]['punchline_embedding_indexes'])
    punchline_of = np.array(self.word_aligned_openface_sdk[hid]['punchline_features'])
    punchline_cvp = np.array(self.word_aligned_covarep_sdk[hid]['punchline_features'])
    context_w = np.array(self.language_sdk[hid]['context_embedding_indexes'])
    context_of = np.array(self.word_aligned_openface_sdk[hid]['context_features'])
    context_cvp = np.array(self.word_aligned_covarep_sdk[hid]['context_features'])
    x_p = torch.LongTensor(self.padded_punchline_features(punchline_w, punchline_of, punchline_cvp, self.max_sen_len))
    x_c = torch.LongTensor(self.padded_context_features(context_w, context_of, context_cvp, self.max_context_len, self.max_sen_len))
    y = torch.FloatTensor([self.humor_label_sdk[hid]])
    return (x_p, x_c, y)