MCPcopy Index your code
hub / github.com/lazyprogrammer/machine_learning_examples / my_tokenizer

Function my_tokenizer

rnn_class/util.py:86–89  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

84 return sentences, word2idx
85
86def my_tokenizer(s):
87 s = remove_punctuation(s)
88 s = s.lower() # downcase
89 return s.split()
90
91def get_wikipedia_data(n_files, n_vocab, by_paragraph=False):
92 prefix = '../large_files/'

Callers 1

get_wikipedia_dataFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected