-->

Using subword information in OOV token from fastte

2019-08-27 14:50发布

问题:

I have my own Fasttext model and trained with it a keras classification model with a word embedding layer.

But, I wonder how I can make use of the subword information of my model for OOV words? Since the word embedding layer operated via indices to look up word vectors and OOV words have no index. Even if a OOV token has a index how would I assign it the proper word vector to this OOV on the fly for an already trained model?

Thanks in advance!