udapi.block.ud.en.setspaceafter module

Block ud.en.SetSpaceAfter for heuristic setting of SpaceAfter=No in English.

Usage:

udapy -s ud.en.SetSpaceAfter < in.conllu > fixed.conllu

Author: Martin Popel

class udapi.block.ud.en.setspaceafter.SetSpaceAfter(not_after= ¿ ( [ { /', not_before='. , ; : ! ? } ] ) / ?? ??? !! !!! ... …', fix_text=True, extra_not_after='', extra_not_before='', **kwargs)[source]

Bases: SetSpaceAfter

Block for heuristic setting of the SpaceAfter=No MISC attribute in English.

process_tree(root)[source]

Process a UD tree