penman.surface¶
Surface strings, tokens, and alignments.
Epigraphical Markers¶
-
class
penman.surface.
AlignmentMarker
(indices, prefix=None)[source]¶ Bases:
penman.epigraph.Epidatum
Module Functions¶
-
penman.surface.
role_alignments
(g)[source]¶ Return a mapping of triples to role alignments in graph g.
- Parameters
g – a
Graph
containing role alignment data- Returns
A
dict
mappingTriple
objects to their correspondingRoleAlignment
objects, if any.