Named Entity Recognition 25.3
Named Entity Recognition User and Programming Guide

# Compile Grammars

After you write a grammar, compile the XML file into an ECR file using the Named Entity Recognition command-line tool `edktool`. XML files are easy for people to read, but inefficient for computers to process. `edktool` transforms the XML file into an ECR file that is efficient for Named Entity Recognition to use directly. An example of the `edktool` compile command is:

    edktool c mygrammar.xml

This command produces the output file `mygrammar.ecr`.

NOTE: On Microsoft Windows platforms, OpenText recommends that you use only ASCII characters in your grammar file names.

For more information about `edktool`, see Compile and Test Grammars.

NOTE: Named Entity Recognition (Eduction) version 12.7 and later compiles grammars to a compressed ECR format.

Copyright 2013-2025 Open Text
Version 25.3 | Last updated July 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.3

Topic Title: Compile Grammars