facebookresearch / InferSent

InferSent sentence embeddings
Other
2.28k stars 471 forks source link

Can you save a model with vocab? #142

Open AlexanderMillington opened 4 years ago

AlexanderMillington commented 4 years ago

Hi, I want to use Infersent to measure the similarity scores on the fly - i.e. as and when the user requests similarity scores. The issue I have with this is the time taken to build the vocab prior to using the model.

Is there any way to save a model after building the vocab? So that it can be loaded and used without the need to continually repeat this step. Or is there a better method to use in this way?

Thanks

Paarth3098 commented 3 years ago

Hi Alexander, Did you find a way? Even I want to use this model in a similar fashion, but building the vocab again and again consumes a lot of time.

Thanks