from utils.config import Config

from .base_postprocessor import BasePostprocessor
from .SP_postprocessor import SP_Postprocessor
from .SP_postprocessor_test import SP_Postprocessor_test

def get_postprocessor(config: Config):
    postprocessors = {
        'msp': BasePostprocessor,
        'SP': SP_Postprocessor,
        'SP_test': SP_Postprocessor_test,
    }

    return postprocessors[config.postprocessor.name](config)
