sentence2vec icon indicating copy to clipboard operation
sentence2vec copied to clipboard

some questions about the dimensionality

Open hit-joseph opened this issue 7 years ago • 1 comments

thank you for your code! I have read the source paper and your codes, just have some confuse about the embedding dimensionality. does the dimensionality of the word and sentence embedding should be the same ? in your code ,it is yes, but I think that the paper said it use pca and pca is used for dimensionality。 so in my opinion the dimensionality of sentence embedding should be less than word , am I right?

hit-joseph avatar Mar 11 '19 13:03 hit-joseph

In Google's work, the sentence dimensionality is larger than the word embeddings (e.g. 300 vs. 512). The algorithm here more or less "sums" the word vectors with weightings - so its dimensionality has to be the same for this algorithm. From memory (it's been a while since I read the paper) - PCA is used to neutralize / offset some of the highest variant features in the summed vectors.

rock3125 avatar Mar 11 '19 19:03 rock3125