keras/src/layers/preprocessing/text_vectorization.py/TextVectorization/from_config
class TextVectorization:    def from_config(cls, config):
        if not isinstance(config["standardize"], str):
            config["standardize"] = serialization_lib.deserialize_keras_object(
                config["standardize"]
            )
        if not isinstance(config["split"], str):
            config["split"] = serialization_lib.deserialize_keras_object(
                config["split"]
            )

        if isinstance(config["ngrams"], list):
            config["ngrams"] = tuple(config["ngrams"])

        return cls(**config)