MCPcopy Create free account
hub / github.com/baidu/lac / __init__

Method __init__

python/LAC/models.py:250–252  ·  view source on GitHub ↗
(self, model_path, mode, use_cuda)

Source from the content-addressed store, hash-verified

248class SegModel(Model):
249 """Docstring for Seg Model"""
250 def __init__(self, model_path, mode, use_cuda):
251 super(SegModel, self).__init__(model_path, mode, use_cuda)
252 self.dataset = reader.SegDataset(self.args)
253
254 def run(self, texts):
255 crf_result = super(SegModel, self).run(texts)["crf_result"]

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected