I am trying to use the following code to vectorize a sentence:
from tensorflow.keras.layers import TextVectorization
text_vectorization_layer = TextVectorization(max_tokens=10000,
ngrams=5,
standardize='lower_and_strip_punctuation',
output_mode='int',
output_sequence_length = 15
)
text_vectorization_layer(['BlackBerry Limited is a Canadian software'])
However, it complains with the following error:
AttributeError: 'NoneType' object has no attribute 'ndims'