public static PostProcessor FromConfig()

in Runtime/Tokenizers/PostProcessors/PostProcessors.cs [31:47]


        public static PostProcessor FromConfig(JObject config)
        {
            if (config == null)
            {
                return null;
            }

            string configType = config["type"].ToString();

            switch (configType)
            {
                case "TemplateProcessing":
                    return new TemplateProcessing(config);
                default:
                    throw new Exception("Unknown PostProcessor type");
            }
        }