Incorporate fasttext vectors in tf.keras embedding layer?

676 views Asked by At

Fasttext could handle OOV easily, i.e., it could be assumed that emb = fasttext_model(raw_input) always holds. However, I am not sure how I could build this layer into tf.keras embedding. I couldn't simply load the matrix into Embedding because in that way the OOV couldn't be handled. Is there a walkaround that I could use fasttext_model in a tf.keras model?

0

There are 0 answers