Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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_warnings
Function · 0.45
import_modules_from_file
Function · 0.45
push_python_path
Function · 0.45
register_hook
Method · 0.45
calculate
Method · 0.45
sort_conds
Method · 0.45
run.py
File · 0.45
test_image_quality_assessment_degradation.py
File · 0.45
conf.py
File · 0.45
get_baichuan7B_model_tokenizer
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected