matchzoo.datasets.quora_qp

Package Contents

Functions

load_data(stage: str = ‘train’, task: typing.Union[str, BaseTask] = ‘classification’, return_classes: bool = False) → typing.Union[matchzoo.DataPack, tuple]

Load QuoraQP data.

matchzoo.datasets.quora_qp.load_data(stage: str = 'train', task: typing.Union[str, BaseTask] = 'classification', return_classes: bool = False) → typing.Union[matchzoo.DataPack, tuple]

Load QuoraQP data.

Parameters
  • pathNone for download from quora, specific path for downloaded data.

  • stage – One of train, dev, and test.

  • task – Could be one of ranking, classification or a matchzoo.engine.BaseTask instance.

  • return_classes – Whether return classes for classification task.

Returns

A DataPack if ranking, a tuple of (DataPack, classes) if classification.