C2_Assignment_EX10_perplexity

Hi,
I have a question concerning this calculation made in the assignment to have the length of sentence.

This can’t be true as we said in the course that the length doesn’t include the starting tag " < s > " !

1 Like

Hi @Ibrahim_RIDENE

There is a note for that exercise:

Note: For the sake of simplicity, in the code below, <s> is included in perplexity score calculation.

Cheers

3 Likes