Descriptions:
Relations
type: typed dictionary withsources
(list of source node ids),targets
(list of target node ids), andrelation
(relation node id)get_relations
method that returns allRelations
for a certainrelation_type
(eitherS
,TA
, orYA
). We use the following constraints (format:REL-NODE-TYPES: SRC-TYPES -> TRG-TYPES
):- TA:
[TA]: [L] -> [L]
- S:
[RA, CA, MA]: [I] -> [I]
- YA:
[YA]: [L, TA] -> [I, L, RA, CA, MA]
(Note: relations L -> YA -> L encode (in-)direct speech)
- TA:
get_relation_statistics
: collect the following statistics for a given nodeset by usingget_relations
:- "missed_edges": A list of edges not participating in any of the above relations, format:
nodeset_id node_src:node_trg src_type:trg_type
- "covered_edges": The number of covered edges,
int
.
- "missed_edges": A list of edges not participating in any of the above relations, format:
- "empty_sources": A list of relations with no source nodes when following above constraints, format:
nodeset_id node_id node_type