def generate_batch(batch_size, skip_window):
    global data_index
batch = np.ndarray(shape=batch_size, dtype=np.int32)
labels = np.ndarray(shape=(batch_size, 1), dtype=np.int32)
batch_index = 0
Tensorflow реализация word2vec