@@ -81,8 +81,8 @@ Similarly, a `feature.deserialize_example` exists to decode the proto
81
81
82
82
#### If you don't control the generation pipeline
83
83
84
- If you're not sure what your ` tfds.features ` translates into ` tf.train.Example ` ,
85
- you can experiment in colab:
84
+ If you want to see how ` tfds.features ` are represented in a ` tf.train.Example ` ,
85
+ you can examine this in colab:
86
86
87
87
* To translate ` tfds.features ` into the human readable structure of the
88
88
` tf.train.Example ` , you can call ` features.get_serialized_info() ` .
@@ -92,7 +92,7 @@ you can experiment in colab:
92
92
``` python
93
93
example_specs = features.get_serialized_info()
94
94
parser = tfds.core.example_parser.ExampleParser(example_specs)
95
- nested_feature_specs = parser._build_feature_specs()
95
+ nested_feature_specs = parser._nested_feature_specs
96
96
feature_specs = tfds.core.utils.flatten_nest_dict(nested_feature_specs)
97
97
```
98
98
@@ -103,7 +103,7 @@ Note: If you're using custom feature connector, make sure to implement
103
103
# ## Get statistics on splits
104
104
105
105
106
- TFDS requires to know the exact number of example within each shard. This is
106
+ TFDS requires to know the exact number of examples within each shard. This is
107
107
required for features like `len (ds)` , or the
108
108
[subplit API ](https:// www.tensorflow.org/ datasets/ splits):
109
109
`split=' train[75%:]' ` .
0 commit comments