NLIDataset
class liqfit.datasets.NLIDataset
Parameters:
hypothesis (List[str]): List of string sequences.
premises: (List[str]): List of string sequences.
labels (List[int]): List of labels as integers.
liqfit.datasets.NLIDataset.load_dataset
liqfit.datasets.NLIDataset.load_dataset
Parameters:
dataset (Optional[Dataset]): Dataset object (if
dataset_name
not passed). (Defaults toNone
).dataset_name (int): Dataset name to load from Hugging Face datasets (if
dataset
not passed). (Defaults toNone
).classes (Optional[List[str]]): List of classes available in the dataset. (Defaults to
None
).text_column (Optional[str]): Column name that contains the text. (Defaults to "text").
label_column (Optional[str]): Column name that contains the labels. (Defaults to "label").
template (Optional[str]): Template string that will be used to concatenate the label to it. (Defaults to
"This example is {}."
)normalize_negatives (bool): Whether to normalize negative examples or not (Defaults to False).
positives (int): Positives label ID. (Defaults to 1).
negatives (int): Positives label ID. (Defaults to -1).
multi_label (bool): Whether each example has more than one label or not. (Defaults to
False
).
Using NLIDataset
Last updated