Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/hankcs/HanLP
/ get
Method
get
plugins/hanlp_common/hanlp_common/document.py:167–171 ·
view source on GitHub ↗
(_k, _i)
Source
from the content-addressed store, hash-verified
165
d = self
166
for
sample in [dict(zip(d, t))
for
t in zip(*d.values())]:
167
def
get(_k, _i):
168
_v = sample.get(_k, None)
169
if
not _v:
170
return
None
171
return
_v[_i]
172
173
sent = CoNLLSentence()
174
Callers
15
translate
Method · 0.95
load
Function · 0.80
feed_batch
Method · 0.80
_init_new_embeddings
Method · 0.80
tokenize_amr
Method · 0.80
tokenize_amr
Method · 0.80
dfs_linearize_tokenize
Function · 0.80
dfs_linearize_levi
Function · 0.80
dfs_linearize_rgcn
Function · 0.80
dfs_linearize_constituency
Function · 0.80
dfs_linearize_tokenize_with_linguistic_structures
Function · 0.80
tokenize_amr
Method · 0.80
Calls
no outgoing calls
Tested by
1
test_init
Method · 0.64