I am working on sentiment analysis of text. I am using keras word embedding. If my embedding has a vocabulary of 50 and an input length of 4 and I choose an embedding space of 8 dimensions, how will be the output from the embedding layer?
Asked
Active
Viewed 77 times
3
-
50 what? What model are you talking about? What is the framework you are using? Without such minimum information it is impossible to help you. – Lucas Farias Feb 15 '19 at 06:22
-
i updated my question. – vamsi Feb 15 '19 at 07:19
1 Answers
1
As noted in Keras Documentation, your embedding layer output will be of dimension:
(<batch_size>, <input_length>, <embedding dimension>)
i.e. in your case it is (None, 4, 8)
, where None
stands for your batch size. The vocabulary size doesn't affect the output dimension, but you need to input it while constructing your Layer
object.

gunes
- 49,700
- 3
- 39
- 75