matchzoo.datasets.quora_qp¶
Submodules¶
Package Contents¶
-
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: - path – None 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.BaseTaskinstance. - return_classes – Whether return classes for classification task.
Returns: A DataPack if ranking, a tuple of (DataPack, classes) if classification.