langtest.datahandler.datasource.DeltaLiveTablesDataset#

class DeltaLiveTablesDataset(file_path: str, task: TaskManager, **kwargs)#

Bases: BaseDataset

A class to handle datasets from the Delta Live Tables(DLT).

__init__(file_path: str, task: TaskManager, **kwargs) None#

Initializes a DltDataset object.

Parameters:
  • file_path (str) – The path to the data file.

  • task (str) – Task to be evaluated on.

  • **kwargs

Methods

__init__(file_path, task, **kwargs)

Initializes a DltDataset object.

export_data(data, output_path)

Exports the data to the corresponding format and saves it to 'output_path'.

load_data()

Load data from a any file or dlt wrapper and preprocess it based on the specified task.

load_raw_data()

Load data from a file into raw lists of strings

Attributes

data_sources

dataset_size

supported_tasks

export_data(data: List[Sample], output_path: str)#

Exports the data to the corresponding format and saves it to ‘output_path’.

load_data() List[Sample]#

Load data from a any file or dlt wrapper and preprocess it based on the specified task.

Returns:

A list of preprocessed data samples.

Return type:

List[Sample]

load_raw_data() List[Dict]#

Load data from a file into raw lists of strings

Returns:

parsed file into list of dicts

Return type:

List[Dict]