26 lines
944 B
Go
26 lines
944 B
Go
package builtin
|
|
|
|
import "gitea.maximumdirect.net/eric/seriatim/internal/pipeline"
|
|
|
|
// NewRegistry registers the built-in modules.
|
|
func NewRegistry() *pipeline.Registry {
|
|
registry := pipeline.NewRegistry()
|
|
|
|
registry.RegisterInputReader(jsonFilesReader{})
|
|
registry.RegisterPreprocessor(validateRaw{})
|
|
registry.RegisterPreprocessor(normalizeSpeakers{})
|
|
registry.RegisterPreprocessor(trimText{})
|
|
registry.RegisterMerger(chronologicalMerger{})
|
|
registry.RegisterPostprocessor(detectOverlaps{})
|
|
registry.RegisterPostprocessor(resolveOverlaps{})
|
|
registry.RegisterPostprocessor(backchannelPostprocessor{})
|
|
registry.RegisterPostprocessor(fillerPostprocessor{})
|
|
registry.RegisterPostprocessor(coalescePostprocessor{})
|
|
registry.RegisterPostprocessor(assignIDs{})
|
|
registry.RegisterPostprocessor(validateOutput{})
|
|
registry.RegisterPostprocessor(autocorrectPostprocessor{})
|
|
registry.RegisterOutputWriter(jsonOutputWriter{})
|
|
|
|
return registry
|
|
}
|