in Runtime/Tokenizers/Normalizers/Normalizers.cs [38:57]
public static Normalizer FromConfig(JObject config)
{
if (config == null)
return null;
string configType = config["type"].ToString();
switch (configType)
{
case "BertNormalizer":
return new BertNormalizer(config);
case "Sequence":
return new NormalizerSequence(config);
case "Replace":
return new Replace(config);
case "Prepend":
return new Prepend(config);
default:
throw new Exception($"Unknown Normalizer type: {configType}");
}
}