diff options
author | Patrick Nguyen <drpng@google.com> | 2017-03-21 20:18:24 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2017-03-21 21:25:58 -0700 |
commit | 540a812c820c530d5f650f6ae49bba59d47e8291 (patch) | |
tree | 0ae3e713a1e268bb7fdaf1075b2c19ef7ce7e0c4 /tensorflow/contrib/lookup | |
parent | 8aa2f3c2ed6a4b8377ad9628c6890a5f12ea2aa8 (diff) |
Fix some documentation formatting errors.
Change: 150841749
Diffstat (limited to 'tensorflow/contrib/lookup')
-rw-r--r-- | tensorflow/contrib/lookup/lookup_ops.py | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/tensorflow/contrib/lookup/lookup_ops.py b/tensorflow/contrib/lookup/lookup_ops.py index 0e64f90864..eec197782d 100644 --- a/tensorflow/contrib/lookup/lookup_ops.py +++ b/tensorflow/contrib/lookup/lookup_ops.py @@ -332,11 +332,12 @@ class TextFileInitializer(TableInitializerBase): The key and value content to get from each line is specified by the `key_index` and `value_index`. - - TextFileIndex.LINE_NUMBER means use the line number starting from zero, - expects data type int64. - - TextFileIndex.WHOLE_LINE means use the whole line content, expects data - type string. - - A value >=0 means use the index (starting at zero) of the split line based + + * `TextFileIndex.LINE_NUMBER` means use the line number starting from zero, + expects data type int64. + * `TextFileIndex.WHOLE_LINE` means use the whole line content, expects data + type string. + * A value `>=0` means use the index (starting at zero) of the split line based on `delimiter`. For example if we have a file with the following content: @@ -349,9 +350,10 @@ class TextFileInitializer(TableInitializerBase): The following snippet initializes a table with the first column as keys and second column as values: - - emerson -> 10 - - lake -> 20 - - palmer -> 30 + + * `emerson -> 10` + * `lake -> 20` + * `palmer -> 30` ```python table = tf.contrib.lookup.HashTable(tf.contrib.lookup.TextFileInitializer( @@ -361,9 +363,10 @@ class TextFileInitializer(TableInitializerBase): ``` Similarly to initialize the whole line as keys and the line number as values. - - emerson 10 -> 0 - - lake 20 -> 1 - - palmer 30 -> 2 + + * `emerson 10 -> 0` + * `lake 20 -> 1` + * `palmer 30 -> 2` ```python table = tf.contrib.lookup.HashTable(tf.contrib.lookup.TextFileInitializer( |