matchzoo.datasets.snli package

Submodules

matchzoo.datasets.snli.load_data module

SNLI data loader.

matchzoo.datasets.snli.load_data.load_data(stage='train', task='classification', target_label='entailment', return_classes=False)

Load SNLI data.

Parameters:
  • stage (str) – One of train, dev, and test. (default: train)
  • task (str) – Could be one of ranking, classification or a matchzoo.engine.BaseTask instance. (default: ranking)
  • target_label (str) – If ranking, chose one of entailment, contradiction, neutral, and - as the positive label. (default: entailment)
  • return_classes (bool) – True to return classes for classification task, False otherwise.
Return type:

Union[DataPack, tuple]

Returns:

A DataPack unless task is classificiation and return_classes is True: a tuple of (DataPack, classes) in that case.

Module contents