Pipeline

Supports pipelining ConvoKit transformers.

class convokit.convokitPipeline.ConvokitPipeline(steps)

A pipeline of transformers. Builds on and inherits functionality from scikit-learn’s Pipeline class.

Parameters

steps – a list of (name, transformer) tuples in the order that they are to be called.

transform_utterance(utt, **params)

Computes attributes of an individual string or utterance using all of the transformers in the pipeline.

Parameters

utt – the utterance to compute attributes for.

Returns

the utterance, with new attributes.