Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Tokenizer in Keras

t = Tokenizer()

test_text = ['Machine Learning Knowledge',
	      'Machine Learning',
             'Deep Learning',
             'Artificial Intelligence']

t.fit_on_texts(test_text)

sequences = t.texts_to_sequences(test_text)

print("The sequences generated from text are : ",sequences)
Source by machinelearningknowledge.ai #
 
PREVIOUS NEXT
Tagged: #Tokenizer #Keras
ADD COMMENT
Topic
Name
9+6 =