docria.algorithm¶
Functions for various processing purposes
Functions

Breadth first search 

Create a new function for a sequence of functions which will be applied in sequence 

Get children of a given property 

Depth first search 

Depth first search, only returning the leaves i.e. those without children or outgoing links. 

Resolves overlapping segments by using the dominant right rule, i.e. the longest wins and if equal length, the rightmost wins. 

Resolves overlapping spans by using the dominant right rule, i.e. the longest wins and if equal length, the rightmost wins. 

First order function which can be used to extract property of nodes 

Groups all nodes in layer_nodes into the corresponding bucket_node 

Covered by predicate :type span_a: 

Convert a sequence of strings, e.g. 

Translate span ranges from a partial extraction to the original data. 