aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/ops/word2vec_ops.cc
diff options
context:
space:
mode:
authorGravatar Anna R <annarev@google.com>2018-01-09 13:32:17 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-01-09 13:36:12 -0800
commit3e852d462aaba446f62f76007405c0794a6087b9 (patch)
tree790dc1747aa319facc98f18450a94015f83a9a89 /tensorflow/core/ops/word2vec_ops.cc
parent55cd506ab8220c6a1075965eb7839cac4af1db3e (diff)
Automated g4 rollback of changelist 180691955
PiperOrigin-RevId: 181365803
Diffstat (limited to 'tensorflow/core/ops/word2vec_ops.cc')
-rw-r--r--tensorflow/core/ops/word2vec_ops.cc32
1 files changed, 2 insertions, 30 deletions
diff --git a/tensorflow/core/ops/word2vec_ops.cc b/tensorflow/core/ops/word2vec_ops.cc
index b6acc2213c..ed685dcf0a 100644
--- a/tensorflow/core/ops/word2vec_ops.cc
+++ b/tensorflow/core/ops/word2vec_ops.cc
@@ -33,25 +33,7 @@ REGISTER_OP("Skipgram")
.Attr("batch_size: int")
.Attr("window_size: int = 5")
.Attr("min_count: int = 5")
- .Attr("subsample: float = 1e-3")
- .Doc(R"doc(
-Parses a text file and creates a batch of examples.
-
-vocab_word: A vector of words in the corpus.
-vocab_freq: Frequencies of words. Sorted in the non-ascending order.
-words_per_epoch: Number of words per epoch in the data file.
-current_epoch: The current epoch number.
-total_words_processed: The total number of words processed so far.
-examples: A vector of word ids.
-labels: A vector of word ids.
-filename: The corpus's text file name.
-batch_size: The size of produced batch.
-window_size: The number of words to predict to the left and right of the target.
-min_count: The minimum number of word occurrences for it to be included in the
- vocabulary.
-subsample: Threshold for word occurrence. Words that appear with higher
- frequency will be randomly down-sampled. Set to 0 to disable.
-)doc");
+ .Attr("subsample: float = 1e-3");
REGISTER_OP("NegTrain")
.Deprecated(19,
@@ -64,16 +46,6 @@ REGISTER_OP("NegTrain")
.Input("lr: float")
.SetIsStateful()
.Attr("vocab_count: list(int)")
- .Attr("num_negative_samples: int")
- .Doc(R"doc(
-Training via negative sampling.
-
-w_in: input word embedding.
-w_out: output word embedding.
-examples: A vector of word ids.
-labels: A vector of word ids.
-vocab_count: Count of words in the vocabulary.
-num_negative_samples: Number of negative samples per example.
-)doc");
+ .Attr("num_negative_samples: int");
} // end namespace tensorflow