Files

27 lines
1008 B
Go
Raw Permalink Normal View History

2026-04-26 13:03:07 -05:00
package builtin
import "gitea.maximumdirect.net/eric/seriatim/internal/pipeline"
// NewRegistry registers the built-in modules.
2026-04-26 13:03:07 -05:00
func NewRegistry() *pipeline.Registry {
registry := pipeline.NewRegistry()
registry.RegisterInputReader(jsonFilesReader{})
registry.RegisterPreprocessor(validateRaw{})
2026-04-26 13:03:07 -05:00
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(resolveDanglersPostprocessor{})
2026-04-26 13:03:07 -05:00
registry.RegisterPostprocessor(assignIDs{})
registry.RegisterPostprocessor(validateOutput{})
registry.RegisterPostprocessor(autocorrectPostprocessor{})
2026-04-26 13:03:07 -05:00
registry.RegisterOutputWriter(jsonOutputWriter{})
return registry
}