MCPcopy
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

translateMethod · 0.95
loadFunction · 0.80
feed_batchMethod · 0.80
_init_new_embeddingsMethod · 0.80
tokenize_amrMethod · 0.80
tokenize_amrMethod · 0.80
dfs_linearize_tokenizeFunction · 0.80
dfs_linearize_leviFunction · 0.80
dfs_linearize_rgcnFunction · 0.80
tokenize_amrMethod · 0.80

Calls

no outgoing calls

Tested by 1

test_initMethod · 0.64