Named Entity Recognition 25.4
Named Entity Recognition User and Programming Guide

# Generate

This command generates an uncompiled XML source file from a plain text file.

The plain text file must contain a list of headwords that you want to use to create a single entity. You cannot include patterns, synonyms, scoring, and so on in the plain text file.

The generate command creates a headword from each line in the plain text file. It ignores whitespace and blank lines. You can include comment lines (a line beginning with `//`). Edktool skips these comment lines when it generates the XML grammar.

`edktool g -i <inputfile>`

The following table describes the parameters for this command.

`-i <inputfile>` | The plaintext grammar file to process. This file must contain one potential match on each line.
`-e <entity>` | The name of the entity to create (the resulting XML grammar file contains a single entity). If you do not specify a name, the entity is given a default name based on the name of the input file. You can use wildcard expressions in this parameter. See Wildcard Expressions in edktool.
`-o <outputfile>` | The output file name.

Copyright 2013-2025 Open Text
Version 25.4 | Last updated October 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.4

Topic Title: Generate