def dataset_reader(self, dataset_doc): return DocReader(self.definition['dataset'], self.dataset_fields, dataset_doc)
def dataset_reader(self, dataset_doc: Mapping[str, Field]) -> DocReader: return DocReader(self.definition['dataset'], self.dataset_fields, dataset_doc)
def dataset_reader(self, dataset_doc): return DocReader(self.dataset_offsets, self.dataset_fields, dataset_doc)