Reference Document: Written Assignment NLP DS.pdf
Task 1
-
Architecture
- Input = 1 x 8
- Hidden = 8 x 4
- Output = 4 x 8
-
One Hot Encoded Vectors
-
the
- [1 0 0 0 0 0 0 0]
-
students
- [0 1 0 0 0 0 0 0]
-
opened
- [0 0 1 0 0 0 0 0]
-
their
- [0 0 0 1 0 0 0 0]
-
laptops
- [0 0 0 0 1 0 0 0]
-
books
- [0 0 0 0 0 1 0 0]
-
exams
- [0 0 0 0 0 0 1 0]
-
minds
- [0 0 0 0 0 0 0 1]
-
-
Embeddings for Target Words
-
the
- [3 2 3 4]
-
students
- [0 3 1 4]
-
opened
- [3 2 0 2]
-
their
- [1 3 0 2]
-
laptops
- [2 2 0 0]
-
books
- [4 2 4 2]
-
exams
- [2 2 4 3]
-
minds
- [4 2 4 2]
-
-
Embeddings for Context Words
-
the
- [1 0 1 4]
-
students
- [1 1 1 1]
-
opened
- [2 0 2 2]
-
their
- [0 1 2 1]
-
laptops
- [1 4 0 1]
-
books
- [4 0 4 4]
-
exams
- [0 1 3 3]
-
minds
- [1 2 3 0]
-
-
Average Embeddings
-
the
- [2 1 2 4]
-
students
- [0.5 2 1 2.5]
-
opened
- [2.5 1 1 2]
-
their
- [0.5 2 1 1.5]
-
laptops
- [1.5 3 0 0.5]
-
books
- [4 1 4 3]
-
exams
- [1 1.5 3.5 3]
-
minds
- [2.5 2.5 3.5 1]
-
Task 2
-
Target Embeddings
-
Time Step = “the”
-
Time Step = “students”
-