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

Method __init__

code/NNModel/data.py:99–102  ·  view source on GitHub ↗
(self, instances, args)

Source from the content-addressed store, hash-verified

97
98class DataIterator(object):
99 def __init__(self, instances, args):
100 self.instances = instances
101 self.args = args
102 self.batch_count = math.ceil(len(instances)/args.batch_size)
103
104 def get_batch(self, index):
105 sentence_ids = []

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected