matchzoo.datasets.quora_qp
¶
Submodules¶
Package Contents¶
-
matchzoo.datasets.quora_qp.
load_data
(stage:str='train', task:str='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.BaseTask
instance. - return_classes – Whether return classes for classification task.
Returns: A DataPack if ranking, a tuple of (DataPack, classes) if classification.