idio / wiki2vec

Generating Vectors for DBpedia Entities via Word2Vec and Wikipedia Dumps. Questions? https://gitter.im/idio-opensource/Lobby
601 stars 137 forks source link

Is it possible to host model file in some database and query it's results? #20

Closed vondiplo closed 8 years ago

vondiplo commented 8 years ago

Do you know of any project aiming to support saving and loading wiki2vec or word2vec model files into a database (like mysql) and provide some adapter to query the vectors ?

dav009 commented 8 years ago

not sure if it is exactly what you are looking for, but I've seen lots of people using: https://github.com/3Top/word2vec-api probably they still load it on memory if that's what you are trying to avoid

vondiplo commented 8 years ago

Thanks for this awesome response, though it's not exactly what I meant. Both solutions require loading the entire model file into the computers internal memory. This is a bit overwhelming. Do you know if it's possible to save the model file into a database somehow (that is persisted on disk) and query the database for the words and vectors?

dav009 commented 8 years ago
dav009 commented 8 years ago

this is the script for dumping them into a plain file: https://gist.github.com/dav009/11ebe5467419857e054bd9af55090b1b

vondiplo commented 8 years ago

@dav009 - Thanks!!! I've got one last question which I guess is only somewhat related so I'll open it in a new thread.