MCPcopy Create free account
hub / github.com/NJUNLP/GTS / __init__

Method __init__

code/BertModel/data.py:155–158  ·  view source on GitHub ↗
(self, instances, args)

Source from the content-addressed store, hash-verified

153
154class DataIterator(object):
155 def __init__(self, instances, args):
156 self.instances = instances
157 self.args = args
158 self.batch_count = math.ceil(len(instances)/args.batch_size)
159
160 def get_batch(self, index):
161 sentence_ids = []

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected