matchzoo.datasets.wiki_qa.load_data

WikiQA data loader.

Module Contents

matchzoo.datasets.wiki_qa.load_data._url = https://download.microsoft.com/download/E/5/F/E5FCFCEE-7005-4814-853D-DAA7C66507E0/WikiQACorpus.zip
matchzoo.datasets.wiki_qa.load_data.load_data(stage:str='train', task:str='ranking', filtered:bool=False, return_classes:bool=False) → typing.Union[matchzoo.DataPack, tuple]

Load WikiQA data.

Parameters:
  • stage – One of train, dev, and test.
  • task – Could be one of ranking, classification or a matchzoo.engine.BaseTask instance.
  • filtered – Whether remove the questions without correct answers.
  • return_classesTrue to return classes for classification task, False otherwise.
Returns:

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

matchzoo.datasets.wiki_qa.load_data._download_data()
matchzoo.datasets.wiki_qa.load_data._read_data(path)