Skip to content
Advertisement

How does Tokenizer in tensorflow deal with out of vocabulary tokens if I don’t provide oov_token?

JavaScript

I didn’t get any error with that code even though I didn’t provide oov_token argument. I expected to get an error in test_tweets = tokenizer.texts_to_sequences(X_test)

How does tensorflow deal with out of vocabulary words during the test time when you don’t provide the oov_token?

Advertisement

Answer

OOV words will be ignored / discarded by default, if oov_token is None:

JavaScript
JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement