facebookresearch / StarSpace

Learning embeddings for classification, retrieval and ranking.
MIT License
3.94k stars 531 forks source link

Starspace vector calculation #275

Open Fahad92 opened 5 years ago

Fahad92 commented 5 years ago

Hello, I'm trying to understand how StarSpace calculates the embedding stored in .tsv file. I tried to follow the sequence of C++ code, and I see it is dumping the LHSEmbeddings in EmbedModel::saveTsv() function. The LHSEmbeddings is initialized in EmbedModel::initModelWeights() function. Can someone please let me know in which file they are calculating the values of LHSEmbeddings_ or the values stored in .tsv file. thanks in advance