Scheduled Maintenance
-
February 10, 2026, from 8:00 AM to 9:00 AM PST. Account-related operations might be temporarily unavailable.

Classify File Against Templates

The Template Extraction SDK allows you to classify an input file against group of template forms.

1 using TemplatesCollection templates = new TemplatesCollection.Builder()
2 .FromSourceFolder(templatesFolder)
3 .Build();
4
5 using TemplateClassifier classifier = new TemplateClassifier.Builder()
6 .SetTemplatesSource(templates)
7 .SetRuntimeFolder("./runtimes")
8 .SetLicense(["...", "..."])
9 .Build();
10
11 using FileStream stm = new FileStream(inputFile, FileMode.Open, FileAccess.Read, FileShare.Read);
12 Result<ClassifyResult> classifyResult = classifier.Classify(new InputStream(stm));

Did you find this helpful?

Trial setup questions?

Ask experts on Discord

Need other help?

Contact Support

Pricing or product questions?

Contact Sales
Classify File Against Templates | Apryse documentation