Method Load
- Namespace
- OpenCvSharp.Dnn
- Assembly
- OpenCvSharp.dll
Load(string)
Loads a tokenizer from a model directory. The directory must contain a config.json
(with a supported model_type, e.g. "gpt2" or "gpt4") and a tokenizer.json.
public static Tokenizer Load(string modelConfig)
Parameters
modelConfigstringPath prefix to the model directory. File names are concatenated directly, so it must end with an appropriate path separator.
Returns
- Tokenizer
A ready-to-use Tokenizer.