For the ‘next_symbol’ function, just out of curiosity, what is the second output of the model, which was denoted ‘_’,?
output, _ = model((padded_with_batch, padded_with_batch))
For the ‘next_symbol’ function, just out of curiosity, what is the second output of the model, which was denoted ‘_’,?
output, _ = model((padded_with_batch, padded_with_batch))
_
here is equal to padded_with_batch
(second, which values are the same as first’s in this case)
In case of the sentence “I want to fly in the sky.” :
array([[ 13, 483, 320, 4219, 132, 213, 2775, 10, 1, 0, 0,
0, 0, 0, 0, 0]])