udapi.block.ud.printfixed module

Block PrintFixed prints occurrences of fixed multiword expressions in UD. It can be run twice in a row, first collecting known fixed expressions and then also reporting other occurrences of these expressions where they are not annotated as fixed.

Usage: udapy ud.PrintFixed only_forms=1 < in.conllu | sort -u > fixed_expressions.txt udapy ud.PrintFixed known_expressions=fixed_expressions.txt < in.conllu | sort | uniq -c | less

Author: Dan Zeman

class udapi.block.ud.printfixed.PrintFixed(only_forms=False, known_expressions=None, **kwargs)[source]

Bases: Block

Print fixed multiword expressions.

process_node(node)[source]

Process a UD node