Entity Recognition Block

Entity Recognition Block

To extract meaningful data from documents, it is necessary to identify both context-based and structured information within text. The Entity Recognition Block is a processing block used within a flow to identify and extract this information from your documents. It combines two complementary approaches:

By combining both approaches, flows can extract a wider range of information from document text with greater accuracy and control. In this article, you’ll learn how to leverage the Entity Recognition Block for your use case.

Context-based recognition

The Entity Recognition Block uses a context-based approach to identify entities based on their meaning and context within the text. Because the block relies on contextual understanding, it is well-suited for extracting information that does not follow a fixed or predictable format, including:

How it works

The block analyzes the surrounding text to determine whether a word or phrase represents a specific type of entity. Instead of relying on predefined patterns, it uses a trained model to classify entities based on context. Use this approach when extracting information that:

What affects the results

Performance depends on the quality and structure of the input text. Key factors include:

Limitations of context-based recognition

This approach does not rely on pre-defined patterns and may not consistently detect highly structured values. For example, it is not well suited for:

In such cases, pattern-based approaches provide more reliable results.

Pattern-based detection

Pattern-based detection is a rule-based approach that identifies structured data using predefined patterns and keywords. It detects entities by:

This approach is suitable for extracting information that:

Typical use cases include the following:

How it works

It processes text input (typically from a Transcription block) and applies configured rules to detect matching values. It supports two main configuration approaches:

Starting v43, we support detecting entities that span multiple lines or pages, improving accuracy for real-world documents where values may be split across lines or continue onto the next page.

What affects the results

Pattern-based detection performance depends on how well the detection rules are defined and how closely the input text matches those rules.

Key factors include:

Limitations

The pattern-based detection does not interpret meaning and cannot rely on context to identify entities. As a result:

Example

The Entity Recognition Block can extract both context-based and structured values from a customer application form:

.png?sv=2026-02-06&spr=https&st=2026-07-27T09%3A13%3A25Z&se=2026-07-27T09%3A29%3A25Z&sr=c&sp=r&sig=CKbpHU9AHMc12tXGi68Seu4nDwt%2Fiwps3iSZJpKD9l8%3D)

Regex-based detection

The pattern-based approach allows the system to identify values based on their format, regardless of context.

Using predefined patterns

The approach includes predefined patterns and keyword types for common entities such as emails, phone numbers, and identification numbers, reducing the need for custom configuration.

From the same document:

These entities can be detected using predefined configurations without defining custom regex patterns.

Unlike the context-based recognition, the pattern-based approach does not rely on context and will match any value that fits the defined pattern. This quality makes it highly effective for structured data but dependent on correct configuration.