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, misc_name=None, misc_value=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.
Alternatively, a MISC attribute can be specified that triggers sentence splitting at the given token. With this approach, multiple sentence splits can be performed during one run.