MCPcopy Create free account
hub / github.com/hankcs/HanLP / predict

Method predict

hanlp/components/lambda_wrapper.py:18–22  ·  view source on GitHub ↗
(self, data: Any, **kwargs)

Source from the content-addressed store, hash-verified

16 self.config['classpath'] = classpath_of(self)
17
18 def predict(self, data: Any, **kwargs):
19 unpack = kwargs.pop('_hanlp_unpack', None)
20 if unpack:
21 return self.function(*data, **kwargs)
22 return self.function(data, **kwargs)
23
24 @staticmethod
25 def from_config(meta: dict, **kwargs):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected