Pass this to embedding_column or indicator_column to convert sequence
categorical data into dense representation for input to sequence NN, such as
RNN.
An ordered iterable defining the vocabulary. Each feature
is mapped to the index of its value (if present) in vocabulary_list.
Must be castable to dtype.
dtype
The type of features. Only string and integer types are supported. If
None, it will be inferred from vocabulary_list.
default_value
The integer ID value to return for out-of-vocabulary feature
values, defaults to -1. This can not be specified with a positive
num_oov_buckets.
num_oov_buckets
Non-negative integer, the number of out-of-vocabulary
buckets. All out-of-vocabulary inputs will be assigned IDs in the range
[len(vocabulary_list), len(vocabulary_list)+num_oov_buckets) based on a
hash of the input value. A positive num_oov_buckets can not be specified
with default_value.
Returns
A SequenceCategoricalColumn.
Raises
ValueError
if vocabulary_list is empty, or contains duplicate keys.
ValueError
num_oov_buckets is a negative integer.
ValueError
num_oov_buckets and default_value are both specified.
[[["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."],[],[]]