oborchers / Fast_Sentence_Embeddings

Compute Sentence Embeddings Fast!
GNU General Public License v3.0
616 stars 83 forks source link

Is it possible to use customised word frequency other than the one comes with model and lang_freq option? #25

Closed zheyaf closed 4 years ago

zheyaf commented 4 years ago

Hi, I have a word frequency dictionary independent from the model I trained, is it possible to have the option to feed sif with a word frequency dictionary separately? Thanks!

oborchers commented 4 years ago

@zheyaf : Thanks for asking. Currently this feature is not supported. Yet, you can manipulate the ingoing model to contain your own frequencies. For an example, see here