udapi.block.tutorial.adpositions module

tutorial.Adpositions block template.

Example usage:

for a in */sample.conllu; do
   printf '%50s ' $a;
   udapy tutorial.Adpositions < $a;
done | tee results.txt

# What are the English postpositions?
cat UD_English/sample.conllu | udapy -TM util.Mark    node='node.upos == "ADP" and node.parent.precedes(node)' | less -R
class udapi.block.tutorial.adpositions.Adpositions(**kwargs)[source]

Bases: Block

Compute the number of prepositions and postpositions.

process_end()[source]

A hook method that is executed after processing all UD data

process_node(node)[source]

Process a UD node