Named Entity Recognition 25.2
Named Entity Recognition User and Programming Guide

# EntityMatchLimitN

The maximum number of matches to return for the entities specified by the corresponding EntityN parameter. When Named Entity Recognition reaches the limit it stops searching for those entities, so no further matches are returned and Named Entity Recognition does not spend time looking for them.

If the `EntityN` parameter specifies multiple entities, using a wildcard or a comma-separated list, the limit applies separately to each entity. For example, the following configuration would permit up to three matches for British names, and up to three for French names, and so on:

    Entity0=pii/name/*
    EntityMatchLimit0=3

The limit is applied after post-processing, so any matches that are discarded by post-processing do not count towards the limit.

You might set this parameter if you want to see some matches for a given entity but would prefer to ignore further matches in favor of reducing the processing time.

NOTE: In the Named Entity Recognition SDKs, you can turn off an entity by setting `EdkSessionSetEntityMatchLimit` (or an equivalent) to zero. However, you cannot configure a match limit of zero in the configuration file.

NOTE: You can override the value of this parameter by using the associated Named Entity Recognition SDK functions, or by providing a configuration file fragment when you create the session.

Type: | Integer
Default: | unlimited
Range: | Minimum: 1 NOTE: If you use a non-valid value, Named Entity Recognition uses the default setting (unlimited matches)
Required: | No
Configuration Section: | Eduction
Example: | With the following configuration Named Entity Recognition returns a maximum of three matches for the `pii/name/gb` entity. `Entity0=pii/name/gb EntityMatchLimit0=3`
See Also: | EntityN MaxMatchesPerDoc

Copyright 2013-2025 Open Text
Version 25.2 | Last updated April 2025

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: Knowledge Discovery Named Entity Recognition 25.2

Topic Title: EntityMatchLimitN