Closed ninikolov closed 4 years ago
this is true if you only care about unigrams (word vectors), if you load our provided models as opposed to pretrained fasttext. the sent2vec models however also add bi-gram and tri-gram vectors, which you would not get by this approach.
Hi,
Why its taking more than 2 hours to get the embed_sentence (700 D vector)? Or do i want to do anything special to make it quick.
import sent2vec model = sent2vec.Sent2vecModel() model.load_model('model.bin') emb = model.embed_sentence("once upon a time .") # This is more than 2 hours to return the sentvec
Thanks for your time & info
Which OS are you using?
Which OS are you using?
Its RHEL 7 with GPU installed (120+ processor). Just to make use of 20+GB RAM while loading bin (My bin size is 21GB)
embed_sentence
shouldn't take two hours. Maybe try to use embed_sentences
instead of embed_sentence
. Could it be your gcc version?
Hi,
Am I correct in thinking there is no difference between using sent2vec's python interface, and loading the sent2vec model directly into fastText to access the word vectors? E.g. using your Wikipedia unigram model I get:
and with fastText:
Thanks for the info.