Named Entity Recognition 25.2
Named Entity Recognition User and Programming Guide

# PreFilterTaskN

The name of a Named Entity Recognition pre-filtering task to run. This parameter specifies the name of a section in the Named Entity Recognition configuration file that contains the parameters required to run the task. Replace the value `N` with the number of the task, starting from zero (`PreFilterTask0`, `PreFilterTask1`, and so on)

Pre-filtering tasks use a regular expression to perform an initial check to find strings that might match an entity in your input text. It then restricts Named Entity Recognition matching to windows of several characters around these potential matches. This process can improve performance for some grammars, by restricting the amount of the input text that Named Entity Recognition checks in detail for matches.

In the pre-filter configuration sections, you set Regex to a regular expression that finds potential matches. You use WindowCharsAfterMatch and WindowCharsBeforeMatch to specify the size of the matching window to use.

Named Entity Recognition runs all your configured pre-filtering tasks for all input text, so ensure that your pre-filter task applies to all your configured grammars and entities. Use a different configuration for any entities that you do not want to pre-filter.

When you configure multiple pre-filtering tasks, Named Entity Recognition runs each of them on your full input text. It then merges any windows that overlap from different tasks, and uses all the resulting windows as input text for the full matching process.

For more information, see Pre-Filter Tasks.

Type: | String
Default: | None
Required: | No
Configuration Section: | Eduction
Example: | `[Eduction] PreFilterTask0=AddressPreFilter [AddressPreFilter] Regex=\d{1,7} WindowCharsAfterMatch=100 WindowCharsBeforeMatch=100`
See Also: | Regex ResourceFile WindowCharsAfterMatch WindowCharsBeforeMatch

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: PreFilterTaskN