MCPcopy Create free account
hub / github.com/K-Quant/HiDy / __init__

Method __init__

ner/data_utils/data_utils.py:254–256  ·  view source on GitHub ↗
(self, window_size=50, pad_size=10)

Source from the content-addressed store, hash-verified

252
253class SentenceExtractor(object):
254 def __init__(self, window_size=50, pad_size=10):
255 self.window_size = window_size
256 self.pad_size = pad_size
257
258 def extract_doc(self, doc):
259 num_sents = math.ceil(len(doc.text) / self.window_size)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected