My goal is to create text generator which is going to generate non-english text based on learning set I provide to it.
I'm currently at the stage of figuring out how the model actually should looks like. I'm trying to implement fasttext pre-trained model as an Embedding layer in my net. But due to that I have some questions.
1) How to properly prepare fasttext model? Should I just download vectors, for the language that I need, and include them in the project, or I have to build it first using skipgram
or cbow
or in some other way?
2) How am I suppose to exchange Keras Embedding() with fasttext model?
Now I have something like this:
model = Sequential()
model.add(Embedding(vocabulary_size, seq_len, input_length=seq_len, output_dim=OUTPUT_DIM))
model.add(LSTM(50, return_sequences=True))
And instead of model.add(Embedding())
I wish to put fasttext vector.
I hope I explained it clearly.