What is the format of the output of the model in UNQ_C9?

In W2 NLP with Attention Models - UNQ_C9, in the instruction:

Output = model((padded_with_batch, padded_with_batch))

What is the format of the output of the model? Is it a tuple, an array, or a single item?

I’m having problems with the next_symbol and greedy_decode functions.

When testing out:

Test it out on a sentence!

test_sentence = “It was a sunny day when I went to the market to buy some flowers. But I only found roses, not tulips.”
print(wrapper.fill(test_sentence), ‘\n’)
print(greedy_decode(test_sentence, model))

I’m getting:

It was a sunny day when I went to the market to buy some flowers. But
I only found roses, not tulips.

Cur
Cur .
Cur . . .
Cur . . . .
Cur . . . . . .
Cur . . . . . . .
Cur . . . . . . . . .
Cur . . . . . . . . . .
Cur . . . . . . . . . . . .
Cur . . . . . . . . . . . . .
Cur . . . . . . . . . . . . . . .
Cur . . . . . . . . . . . . . . . .

Hi @Jorge_Mendoza,

You can find that out using the print(type(model)) in the code. But please be sure to remove the print statment afterwards.

Best,
Mubsi