MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / _func

Function _func

external/sentencepiece/python/src/sentencepiece/__init__.py:1174–1177  ·  view source on GitHub ↗
(v, n)

Source from the content-addressed store, hash-verified

1172 """Enables batch request for the method classname.name."""
1173 func = getattr(classname, name, None)
1174 def _func(v, n):
1175 if type(n) is int and (n < 0 or n >= v.piece_size()):
1176 raise IndexError('piece id is out of range.')
1177 return func(v, n)
1178
1179 def _batched_func(self, arg):
1180 if type(arg) is list:

Callers 1

_batched_funcFunction · 0.85

Calls 1

piece_sizeMethod · 0.80

Tested by

no test coverage detected