udapi.block.util.splitsentence module

Block util.SplitSentence will split a given sentence at a given token.

class udapi.block.util.splitsentence.SplitSentence(sent_id=None, word_id=None, **kwargs)[source]

Bases: Block

If the sent_id of the current sentence matches the parameter, splits the sentence into two. The first token of the second sentence is also given as a parameter.

process_document(document)[source]

Process a UD document