def get_all_identifiers(dataset):
for document in tqdm(<EOL>dataset.glob("<STR_LIT>"), desc="<STR_LIT>" % dataset.name):<EOL><INDENT>identifier = get_identifier(document)<EOL>directory = document.parents[<NUM_LIT:0>]<EOL>yield (directory, identifier)<EOL><DEDENT>
Extracts paragraph identifiers from a dataset in the NTCIR-11 Math-2, and NTCIR-12 MathIR XHTML5
format.

Parameters
----------
dataset : Path
    A path to a dataset.

Yields
-------
(Path, str)
    A parent directory of a paragraph, and the identifier of the paragraph.