aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/g3doc/api_docs/python/functions_and_classes/shard2/tf.string_split.md
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/g3doc/api_docs/python/functions_and_classes/shard2/tf.string_split.md')
-rw-r--r--tensorflow/g3doc/api_docs/python/functions_and_classes/shard2/tf.string_split.md13
1 files changed, 7 insertions, 6 deletions
diff --git a/tensorflow/g3doc/api_docs/python/functions_and_classes/shard2/tf.string_split.md b/tensorflow/g3doc/api_docs/python/functions_and_classes/shard2/tf.string_split.md
index 25607d1619..08ccc5f104 100644
--- a/tensorflow/g3doc/api_docs/python/functions_and_classes/shard2/tf.string_split.md
+++ b/tensorflow/g3doc/api_docs/python/functions_and_classes/shard2/tf.string_split.md
@@ -8,7 +8,8 @@ containing the splitted tokens. Empty tokens are ignored.
If `delimiter` is an empty string, each element of the `source` is split
into individual strings, each containing one byte. (This includes splitting
-multibyte sequences of UTF-8.)
+multibyte sequences of UTF-8.) If delimiter contains multiple bytes, it is
+treated as a set of delimiters with each considered a potential split point.
For example:
N = 2, source[0] is 'hello world' and source[1] is 'a b c', then the output
@@ -29,14 +30,14 @@ st.values = ['hello', 'world', 'a', 'b', 'c']
* <b>`delimiter`</b>: `0-D` string `Tensor`, the delimiter character, the string should
be length 0 or 1.
+##### Raises:
+
+
+* <b>`ValueError`</b>: If delimiter is not a string.
+
##### Returns:
A `SparseTensor` of rank `2`, the strings split according to the delimiter.
The first column of the indices corresponds to the row in `source` and the
second column corresponds to the index of the split component in this row.
-##### Raises:
-
-
-* <b>`ValueError`</b>: If delimiter is not a single-byte character.
-