I want to train a text classifier without using a pre-trained language model. I only want to use pre-trained word embeddings. I have the word embeddings in a text file.
I see there is an option to specify weights to the language_model_learner using the pretrained_fnames. But this parameter is not available for the text_classifier_learner.
Is there a way to specify the word embedding from a text file instead of starting from randomly-initialized embeddings.
Also, I am not able to figure out how exactly to use the pretrained_fnames parameter for the language_model_learner. Is there any small working example for this.
Thanks in advance for any help.