Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How can I deploy a pretrained fasttext model?

Hi, I have this code : 

"

import fasttext
ft = fasttext.load_model('pretrained model location')
"
Is there any way I could deploy this model using the google cloud platform? I've been looking around and there doesn't seem to be a way to do it. When I want to create a model it wants me to choose scikit or tensorflow but nothing allows me to deploy this model. Can anyone help? Thanks!
 
0 2 874
2 REPLIES 2

Hello,

Seeing that there is already an existing post [1] on Stack Overflow, kindly follow up on that post to avoid any work duplication. 

 

[1] https://stackoverflow.com/questions/71455187/how-can-i-deploy-a-fasttext-model-on-google-cloud

Hi! Thanks for answering, that question actually is mine, and there hasn't been an answer yet. Anyways I have a question, all I want to do, is deploy a couple pretrained fasttext models : 

import fasttext
ft = fasttext.load_model('pretrainedmodelpath')
Just that, a couple times and be able to have an api get word vectors for words, which google cloud service would best be suited for this task? Most of the google cloud services want me to train my own model and don't let me just load a pretrained one. And in for example Dataflow, I can't just send text via the API and get an answer because it wants a file input. Any ideas? Thanks!