Esempio n. 1
0
def process_x(raw_x_batch):
    """
    将数据集中的句子
    :param raw_x_batch:
    :return:
    """
    x_batch = [word_to_indices(word) for word in raw_x_batch]
    x_batch = np.array(x_batch)
    return x_batch
Esempio n. 2
0
def process_x(raw_x_batch):
    x_batch = [word_to_indices(word) for word in raw_x_batch]
    x_batch = np.array(x_batch)
    return x_batch