Create Classification Cache

To speed up the classification of an input file against many template forms, the SDK provides a way to create a cache data that will be used if present to classify the correct template fast.

C#

1 var templatesFolder = "./templates";
2
3 using TemplatesCollection templates = new TemplatesCollection.Builder()
4 .FromSourceFolder(templatesFolder)
5 .Build();
6
7 using TemplatesCollectionCache cache = new TemplatesCollectionCache.Builder()
8 .SetTemplatesSource(templates)
9 .SetRuntimeFolder("./runtimes")
10 .SetLicense(["", ""])
11 .Build();
12
13 Result<BuildCacheResult> result = cache.Build();

Did you find this helpful?

Trial setup questions?

Ask experts on Discord

Need other help?

Contact Support

Pricing or product questions?

Contact Sales