Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/modelscope/modelscope
/ TrieNode
Class
TrieNode
modelscope/preprocessors/ofa/utils/text2phone.py:6–13 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
4
5
6
class
TrieNode(object):
7
8
def
__init__(self):
9
""
"
10
Initialize your data structure here.
11
""
"
12
self.data = {}
13
self.is_word = False
14
15
16
class
Trie(object):
Callers
2
__init__
Method · 0.70
insert
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…