Question 2
Consider a vocabulary and the corresponding embedding matrix . For example, the row of is the embedding for token of and so on. The following sequence is to be processed by the encoder layer of the transformer architecture by appropriately adding the positional information using the following encoding scheme
Assume the index for the position starts from zero. Add positional information to all the tokens in the sequence. Let the resultant sequence be denoted by , ( will be used in the subsequent questions,please write it down).Here, denotes the embedding for each token in
Based on the above data, answer the given subquestions.