MCPcopy Index your code
hub / github.com/lisa-lab/DeepLearningTutorials / remove_unk

Function remove_unk

code/imdb.py:144–145  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

142 valid_set = (valid_set_x, valid_set_y)
143
144 def remove_unk(x):
145 return [[1 if w >= n_words else w for w in sen] for sen in x]
146
147 test_set_x, test_set_y = test_set
148 valid_set_x, valid_set_y = valid_set

Callers 1

load_dataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected