MCPcopy Create free account
hub / github.com/awslabs/gap-text2sql / __init__

Method __init__

rat-sql-gap/seq2struct/datasets/spider.py:179–182  ·  view source on GitHub ↗
(self, schemas, eval_foreign_key_maps, db_path)

Source from the content-addressed store, hash-verified

177@registry.register('dataset_infer', 'spider')
178class SpiderDatasetInfer(torch.utils.data.Dataset):
179 def __init__(self, schemas, eval_foreign_key_maps, db_path):
180 self.db_path = db_path
181 self.examples = []
182 self.schemas, self.eval_foreign_key_maps = schemas, eval_foreign_key_maps
183
184 def __len__(self):
185 return len(self.examples)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected