facebookresearch / StarSpace

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

How I should use initModel in training #233

Closed bastia0321 closed 5 years ago

bastia0321 commented 5 years ago

In learning the mapping between entities and relations , if I have already had a embedding matrix for the vocabulary, what is the correct form of the file for -initModel parameter.

jwijffels commented 5 years ago

it's a binary or tsv file with the model you save in a previous run using the -model argument

bastia0321 commented 5 years ago

it's a binary or tsv file with the model you save in a previous run using the -model argument

Thanks.

bastia0321 commented 5 years ago

it's a binary or tsv file with the model you save in a previous run using the -model argument

Would you give me some clue on how starspace train such relation model? What I can infer is that the embedding vectors of the two entities are feed into a network so the output could be a softmax prediction? Would you give more details, thanks.