g-simmons / 289G_NLP_project_FQ2020

0 stars 1 forks source link

Create Embedding Layer #2

Closed sajia28 closed 3 years ago

sajia28 commented 3 years ago

The embedding layer is just a lookup table that accepts a list of indices as input and outputs each index's corresponding embedding vector.

You can implement it using pytorch: https://pytorch.org/docs/stable/generated/torch.nn.Embedding.html