Named Entity Recognition 25.2
Named Entity Recognition User and Programming Guide

# LuaEdkMatch:new

The constructor for a `LuaEdkMatch` object (creates a new `LuaEdkMatch` object).

## Syntax

`LuaEdkMatch:new()`

or

`LuaEdkMatch:new(entity_name, matched_text, offset)`

## Arguments

NOTE: You can use this constructor without arguments to create a match without values set. However, to reduce the amount of repeated code, OpenText recommends that you use the alternative version that allows you to create a match with some important information populated.

Argument | Description
--- | ---
`entity_name` | The name of the entity that the match belongs to.
`matched_text` | The matching text.
`offset` | The position of the match (in bytes).

## Returns

(`edkMatch`). The new `edkMatch` object.

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: LuaEdkMatch:new