The returned dictionary can be used as arg 'features' in
tf.io.parse_example.
Typical usage example:
# Define features and transformationsfeature_a=tf.feature_column.categorical_column_with_vocabulary_file(...)feature_b=tf.feature_column.numeric_column(...)feature_c_bucketized=tf.feature_column.bucketized_column(tf.feature_column.numeric_column("feature_c"),...)feature_a_x_feature_c=tf.feature_column.crossed_column(columns=["feature_a",feature_c_bucketized],...)feature_columns=set([feature_b,feature_c_bucketized,feature_a_x_feature_c])features=tf.io.parse_example(serialized=serialized_examples,features=tf.feature_column.make_parse_example_spec(feature_columns))
For the above example, make_parse_example_spec would return the dict:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-04-26 UTC."],[],[]]