MCPcopy Index your code
hub / github.com/modelscope/modelscope / insert

Method insert

modelscope/utils/trie.py:18–21  ·  view source on GitHub ↗
(self, word)

Source from the content-addressed store, hash-verified

16 self.eos = eos
17
18 def insert(self, word):
19 cur = self.root
20 for c in word:
21 cur = cur.child[c]
22
23 def get_next_layer(self, word):
24 cur = self.root

Callers 10

suppress_tracer_warningsFunction · 0.45
import_modules_from_fileFunction · 0.45
push_python_pathFunction · 0.45
register_hookMethod · 0.45
calculateMethod · 0.45
sort_condsMethod · 0.45
run.pyFile · 0.45
conf.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected