epfml / sent2vec

General purpose unsupervised sentence representations
Other
1.19k stars 256 forks source link

Train from a pretrained model #102

Closed miguelwon closed 4 years ago

miguelwon commented 4 years ago

Is it possible to train a new model starting from pre-defined word embedding vectors?

guptaprkhr commented 4 years ago

Hello, Yes. You can use "--sent2vecFromDict" argument to train from a pre-trained model. See https://github.com/epfml/sent2vec/blob/74ae0313aca7145df6baa3e61f6a6314fdc72b7a/src/fasttext.cc#L1040