public static Decoder_ FromConfig()

in Runtime/Tokenizers/Decoders/Decoders.cs [45:58]


        public static Decoder_ FromConfig(JObject config)
        {
            string configType = config["type"].ToString();

            switch (configType)
            {
                /*case "WordPiece":
                    return new WordPieceDecoder(config);*/
                case "Sequence":
                    return new DecoderSequence(config);
                default:
                    throw new Exception("Unknown Decoder type");
            }
        }