<img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=2728387060522524&amp;ev=PageView&amp;noscript=1">
Skip to content
  • There are no suggestions because the search field is empty.

How Classification Works

This article explains how document classification works on the Parashift Platform, from choosing between ML and VLM classification to classification scope, confidence and thresholds. It also covers what happens below the threshold and how to improve your results.

Overview

Classification gives every document a document type, so the platform knows which fields to extract. It runs after separation and before extraction.

A document gets its type in one of two ways:

  • Set at upload: you choose the document type when you upload (in the UI or with a classification scope of one type in the API). Classification is skipped.
  • Automatic classification: the platform predicts the type, and depending on your Upload Profile settings, a user may confirm it in classification validation.

Classification modes

You choose the mode per Upload Profile, under Classification. 

ML classification (Extended)

VLM classification (Basic)

How it decides

Learns from validated documents: frequent words and phrases per document type

Reads the document and compares it with each document type's Common Name and Document Type Hint

Training data

Needed: some validated documents per document type 

Not needed

What to configure

Enough training documents, ideally in every language you process

Common Name and Document Type Hint on every document type (both are required)

Best for

Stable, high-volume document types

New, individual or low-volume document types

Watch out for

A type learned mostly in one language can pull documents in that language towards it

A vague name or hint makes types hard to tell apart

Learn more: How to classify documents using AI Classification and Classify documents with manual validation 

Classification scope

The classification scope (classification_scope in the API) tells the platform which document types a document may get. How many types you send decides whether classification runs.

Scope sent at upload

What happens

classification_candidates

None

Classification runs across all live document types

Filled

One document type

Classification is skipped; the document gets that type straight away

Empty

Several document types

Classification runs, but only across the types you sent

Filled, only with those types

Choosing a document type when you upload in the UI works like a scope with one type. Integrations could send their "allowed document classes" as a scope with several types.

A scope with several types does not force one of them to be chosen. If the best match stays below the threshold, the rules in the next sections apply.

Confidence, candidates and threshold

For each document type it considers, classification calculates a confidence between 0 and 1. The type with the highest confidence is the prediction.

  • Confidence: 1 means 100%, 0 means 0%. A confidence of 0.85 means 85%.
  • Candidates: the API response lists the types considered and their confidence in classification_candidates, for example pp-invoice-de with confidence 1 and pp-invoice-en with confidence 0. Only the top candidates are listed, so a type with a low score may not appear. The list is empty when classification was skipped.
  • Threshold: set in the Upload Profile. If the best confidence reaches the threshold, the document gets that type automatically. You can set separate thresholds per document type and language, so low-volume types are checked while high-volume ones run automatically.

Learn more: Upload Profiles and Confidence Thresholds 

What happens below the threshold

When the best confidence stays below the threshold, three settings decide the outcome, checked in this order.

5-Dec-02-2026-11-56-30-2014-AM

  • Validation required = on: the document goes to classification validation.
  • Validation required = off, fallback type set: the document gets the fallback type from the Upload Profile.
  • Validation required = off, no fallback type: the document fails and has to be uploaded again. Learn more: Failed Documents.

Manual classification validation

With Validation required on, documents below the threshold wait in classification validation for a user to confirm the type.

  1. Open classification validation from the document details or the sidebar on the home page.
  2. Check the document. The most likely document type is preselected, and each type shows its confidence.
  3. Keep or change the type and click Done.

Every confirmed document is validated training data, so manual validation also improves ML classification over time.
Learn more: Classify documents with manual validation.

Improving results

Most classification problems come from too little training data, too many similar document types, or a type fixed at upload without anyone noticing.

  • Keep only the document types you need live. Several similar types (for example many invoice types) compete with each other. Deactivate the ones you don't use.
  • ML: add training data. Aim for about 100 validated documents per document type, covering every layout and language. New training starts as data comes in.
  • VLM: write clear names and hints. Keep the Common Name to the type's name, without special characters. Use the hint to say what sets the type apart.
  • Change one setting at a time when you test, so you can see what affected the result.

Symptom

Likely cause

What to do

classification_candidates is empty

The document had a fixed type at upload: a scope with one type, or a type chosen in the UI

Check the upload request and the Upload Profile, then upload again without a fixed type

A new document type never appears among the candidates

ML classification has too little training data for it

Add training documents, or switch to VLM classification

Documents get the fallback type

Confidence stayed below the threshold, validation is off, and a fallback type is set

Improve training data or hints, lower the threshold, or turn on Validation required

Documents fail at classification

Confidence stayed below the threshold, validation is off, and no fallback type is set

Turn on Validation required or set a fallback type, then upload again

Similar documents get different types

Too many similar document types are live

Deactivate the types you don't need