MCPcopy Create free account
hub / github.com/THUDM/GLM / __call__

Method __call__

data_utils/lazy_loader.py:114–119  ·  view source on GitHub ↗
(self, string)

Source from the content-addressed store, hash-verified

112 self.process_fn = process_fn
113
114 def __call__(self, string):
115 if self.tokenizer is not None:
116 string = self.tokenizer(string, process_fn=self.process_fn)
117 elif self.process_fn is not None:
118 string = self.process_fn(string)
119 return string
120
121
122class LazyLoader(object):

Callers

nothing calls this directly

Calls 1

tokenizerMethod · 0.45

Tested by

no test coverage detected