Interface ContentEnricher

All Superinterfaces:
AutoCloseable, Closeable, Engine
All Known Subinterfaces:
TextRecognizer
All Known Implementing Classes:
AbstractVLMParser, ClaudeVLMParser, EncodeOCRParser, GeminiVLMParser, OpenAIVLMParser, Tess4JParser, TesseractOCRParser

public interface ContentEnricher extends Engine
A Parser a container parser invokes on bytes it has already parsed (OCR on an image, an embedding of a rendered page) rather than one the composite dispatches to; its supported types are the types it can enrich. An enricher the classpath supplied is never dispatched to. Only one that parsesDocuments() may be named under "parsers", where it also parses the types no other parser there claims. See ContentEnrichers.get(org.apache.tika.parser.enricher.CompositeContentEnricher, org.apache.tika.mime.MediaType, org.apache.tika.metadata.Metadata, org.apache.tika.parser.ParseContext).

An enricher is an Engine: configured once under "engines", a "text-recognizers" entry names it.

Since:
Apache Tika 4.1
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    Whether this engine is also a document parser in its own right (a VLM that reads a whole PDF), and so may be named under "parsers".

    Methods inherited from interface org.apache.tika.parser.inference.Engine

    close
  • Method Details

    • parsesDocuments

      default boolean parsesDocuments()
      Whether this engine is also a document parser in its own right (a VLM that reads a whole PDF), and so may be named under "parsers". An OCR engine is not.
      Since:
      Apache Tika 4.2