January 2018
Beginner to intermediate
284 pages
8h 35m
English
In this section, we will explain step-by-step how to build and train a Skip-Gram model using TensorFlow. For a detailed tutorial and source code, please refer to https://www.tensorflow.org/tutorials/word2vec:
train_inputs = tf.placeholder(tf.int32, shape=[batch_size]) train_labels = tf.placeholder(tf.int32, shape=[batch_size, 1])
Note that we train in batches, so batch_size refers to the size of the batch. We also create a ...
Read now
Unlock full access