MCPcopy Index your code
hub / github.com/THUDM/GLM / get_command

Method get_command

data_utils/tokenization.py:277–279  ·  view source on GitHub ↗

get command token corresponding to `name`

(self, name)

Source from the content-addressed store, hash-verified

275 return self.num_tokens
276
277 def get_command(self, name):
278 """get command token corresponding to `name`"""
279 return self.command_name_map[name]
280
281 def get_type(self, name):
282 """get type token corresponding to `name`"""

Callers 15

__init__Method · 0.80
make_masked_dataMethod · 0.80
make_block_dataMethod · 0.80
generate_blank_dataMethod · 0.80
split_samplesMethod · 0.80
construct_blocksMethod · 0.80
sample_sequenceFunction · 0.80
read_contextFunction · 0.80
generate_samplesFunction · 0.80
prepare_tokenizerFunction · 0.80
build_uni_input_from_idsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected