meerqat.viz.html module#

usage: html.py [-h] [–config CONFIG] [–print_config [={comments,skip_null,skip_default}+]] [–n N] [–width WIDTH] [–passages_path PASSAGES_PATH] [–wiki_path WIKI_PATH] [–search_run SEARCH_RUN] [–other_search_run OTHER_SEARCH_RUN] dataset_path output

options:
-h, --help

Show this help message and exit.

--config CONFIG

Path to a configuration file.

–print_config [={comments,skip_null,skip_default}+]

Print the configuration after applying all other arguments and exit.

Visualize dataset in HTML:

dataset_path (required, type: str) output (required, type: str) –n N Number of examples to output after shuffling. Defaults to all without

shuffling. (type: Optional[int], default: null)

--width WIDTH

Width of the image in HTML [default: 400]. (type: int, default: 400)

--passages_path PASSAGES_PATH

(type: Optional[str], default: null)

--wiki_path WIKI_PATH

(type: Optional[str], default: null)

--search_run SEARCH_RUN

(type: Optional[str], default: null)

--other_search_run OTHER_SEARCH_RUN

(type: Optional[str], default: null)

meerqat.viz.html.get_top_1(item, run)[source]#
meerqat.viz.html.get_url_and_text(i, wiki, passages)[source]#
meerqat.viz.html.format_html(dataset_path: str, output: str, n: Optional[int] = None, width: int = 400, passages_path: Optional[str] = None, wiki_path: Optional[str] = None, search_run: Optional[str] = None, other_search_run: Optional[str] = None)[source]#

Visualize dataset in HTML

Parameters:
  • dataset_path (str) –

  • output (str) –

  • n (int) – Number of examples to output after shuffling. Defaults to all without shuffling.

  • width (int) – Width of the image in HTML [default: 400].

  • passages_path (str) –

  • wiki_path (str) –

  • search_run (str) –

  • other_search_run (str) –