semantic_html.parser

Functions

parse_note(→ dict)

Parses a HTML note into a JSON-LD dictionary using lxml and xpath-based mapping.

Module Contents

semantic_html.parser.parse_note(html_input: str | lxml.etree._Element, mapping: dict, note_uri: str = None, metadata: dict = None, rdfa: bool = False, wadm: bool = False, tei: bool = False, conll: bool | dict = False, remove_empty_tags: bool = True) dict

Parses a HTML note into a JSON-LD dictionary using lxml and xpath-based mapping.