cfpq_data.dataset.download_grammars#

download_grammars(template: str, *, graph_name: str | None = None) → Path | None[source]#

Download grammars of the given template.

Parameters:
templatestr

The name of the grammar template from the dataset.

graph_nameUnion[str, None]

The name of the specified graph from the dataset or None for downloading example grammars.

Returns:
pathUnion[Path, None]

Path to the directory with grammars data or None if there is no such grammars in dataset.

Examples

>>> from cfpq_data import *
>>> path = download_grammars("java_points_to", graph_name="avrora")