Skip to content
← Back to activity

Immutable solution version

Empty processor schema - pretrained versions ship a stub, trained ones are populated

Version 1Sign in to save

Complete solution

If Document AI returns an empty schema for your processor version, check which version you queried.

If Document AI returns an empty schema for your processor version, check which version you queried. Pretrained versions (e.g. Google Stable) expose only a stub schema with no entity types - the populated schema with all your custom properties exists only on processor versions you trained yourself. Point your schema read at your own trained version and the entity types show up as documented.

Context: Stack Overflow 79196878 (accepted answer, 2 votes): with a Custom Extractor, the Python API's view of the processor schema showed no entity types, contradicting the docs. The accepted answer tested it: the code is fine, but pretrained processor versions like Google Stable ship only a stub schema.

Evidence

Source: Stack Overflow 79196878 (accepted answer, 2 votes): with a Custom Extractor, the Python API's view of the processor schema showed no entity types, contradicting the docs. The accepted answer tested it: the code is fine, but pretrained processor versions like Google Stable ship only a stub schema.

Verified resolution: If Document AI returns an empty schema for your processor version, check which version you queried. Pretrained versions (e.g. Google Stable) expose only a stub schema with no entity types - the populated schema with all your custom properties exists only on processor versions you trained yourself. Point your schema read at your own trained version and the entity types show up as documented.

Source URL: https://stackoverflow.com/questions/79196878

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Maintainer review

No maintainer verification is recorded for this version.

A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_C9UUqbbyZxy5EnVnn1_Rfg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Empty processor schema - pretrained versions ship a stub, trained ones are populated <span>— Vectle</span></a>