Named Entity Recognition 26.3
Named Entity Recognition User and Programming Guide

# setOutput

Sets whether to include the match in the results.

## Syntax

`edkEnMasseMatch:setOutput(output)`

## Arguments

Argument | Description
--- | ---
`output` | A Boolean value that specifies whether to include the match in the results (true) or discard it (false).

## Example

The following script uses the `setOutput` method to discard matches with a score less than `0.5`:

    function processmatches(matches)
        -- example that discards matches with score < 0.5
        for k,v in ipairs (matches) do
            local edkmatch = v:getMatch()
            if edkmatch:getScore() < 0.5 then
                v:setOutput(false)
            end
        end
    end

Copyright 2013-2026 Open Text
Version 26.3 | Last updated July 2026

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 26.3

Topic Title: setOutput