udapi.block.zellig_harris.common module

udapi.block.zellig_harris.common.get_node_representation(node, print_lemma=False)[source]

Transform the node into the proper textual representation, as will appear in the extracted contexts.

Parameters:
  • node – An input Node.

  • print_lemma – If true, the node lemma is used, otherwise the node form.

Returns:

A proper node textual representation for the contexts data.

udapi.block.zellig_harris.common.print_triple(node_a, relation_name, node_b, print_lemma=False)[source]

Print to the standard output the context.