private static SetNative LoadBinaryModel(BinaryModelConfig config) { var set = new SetNative(config.ModelDictionaryCapacity); foreach (var modelFilename in config.ModelFilenames) { LoadFromBinFile(modelFilename, set); } return(set); }
public static InitParam_v1 Create(BinaryModelConfig cfg, LanguageEnum lang) => new InitParam_v1() { ModelConfigs = cfg, Language = lang };
public NativeTextMMFModelBinary(BinaryModelConfig config) { _Set = LoadBinaryModel(config); }
public NativeTextMMFModelBinary(BinaryModelConfig config) { _NativeMemAllocator = new NativeMemAllocationMediator(nativeBlockAllocSize: 1024 * 1024); _Set = LoadBinaryModel(config, _NativeMemAllocator); }