drepr.models.parsers.v1#

Classes

ReprV1Parser()

The DREPR language version 1 has the following schema:

class ReprV1Parser[source]#

Bases: object

The DREPR language version 1 has the following schema:

` version: '1' resources: <resources> [preprocessing]: <preprocessing> (default is empty list) attributes: <attributes> [alignments]: <alignments> (default is empty list) semantic_model: <semantic_model> `

TOP_KEYWORDS = {'alignments', 'attributes', 'preprocessing', 'resources', 'semantic_model', 'version'}#
DEFAULT_RESOURCE_ID = 'default'#
classmethod parse(raw: dict)[source]#
Parameters:

raw (dict) –

classmethod dump(drepr: DRepr, simplify: bool = True, use_json_path: bool = False)[source]#
Parameters:

Modules