MCPcopy Create free account
hub / github.com/google-research/language / _mapper

Function _mapper

language/common/inputs/char_utils.py:103–106  ·  view source on GitHub ↗
(dataset)

Source from the content-addressed store, hash-verified

101 _mapper: A mapping function that can be used with the tf.data.Dataset API.
102 """
103 def _mapper(dataset):
104 for k in keys_to_map:
105 dataset[k + suffix] = batch_word_to_char_ids(dataset[k], word_length)
106 return dataset
107 return _mapper

Callers

nothing calls this directly

Calls 1

batch_word_to_char_idsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…