matchzoo.datasets.quora_qp.load_data
¶
Quora Question Pairs data loader.
Module Contents¶
Functions¶
|
Load QuoraQP data. |
|
-
matchzoo.datasets.quora_qp.load_data.
_url
= https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FQQP.zip?alt=media&token=700c6acf-160d-4d89-81d1-de4191d02cb5¶
-
matchzoo.datasets.quora_qp.load_data.
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.BaseTask
instance.return_classes – Whether return classes for classification task.
- Returns
A DataPack if ranking, a tuple of (DataPack, classes) if classification.
-
matchzoo.datasets.quora_qp.load_data.
_download_data
()¶
-
matchzoo.datasets.quora_qp.load_data.
_read_data
(path, stage, task)¶