MCPcopy Create free account
hub / github.com/modelscope/modelscope / index

Method index

modelscope/models/nlp/codegeex/tokenizer.py:113–114  ·  view source on GitHub ↗
(self, sym: str)

Source from the content-addressed store, hash-verified

111 return self._num_symbols
112
113 def index(self, sym: str):
114 return self._idx[sym]
115
116 def string(self, idx: int):
117 return self._symbols[idx]

Callers 15

map_tokenMethod · 0.95
addDBIndicatorMethod · 0.80
pointerBackMethod · 0.80
_download_msFunction · 0.80
__getitem__Method · 0.80
__setitem__Method · 0.80
postprocessMethod · 0.80
postprocessMethod · 0.80
predict_and_formatFunction · 0.80
_parse_known_argsMethod · 0.80
passage_correctnessMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected