Answer Server 25.4
Answer Server Help

# Modify the Question Parser Grammar

The default question parser Named Entity Recognition grammar provides a large number of possible questions in English (see Example Questions). Versions of this grammar file are also available in French, German, Italian, Portuguese, and Spanish.

However, if you want to use a Fact Bank in a different language, or if you find that the results for a particular question that you want to use are not ideal, you can add your own entities to the Fact Bank User Grammar.

The `QuestionUserGrammar.xml` file is included in your Answer Server installation, with the other Fact Bank resources. To modify the Question Parser grammar, you must modify this XML file and compile it by using the edktool command-line tool, which is included in the Named Entity Recognition SDK.

The `QuestionUserGrammar.xml` has comments that explain in more detail how to modify the grammar. You can add new entities to the file, for example to provide question formats in different languages. It includes the content in the existing `question_grammar_en.ecr` file, so your modifications extend the existing grammar.

When you have modified the grammar, you compile it and deploy it in Answer Server, replacing the standard `question_grammar_en.ecr` file.

For more information about Named Entity Recognition grammars and edktool, refer to the Named Entity Recognition User and Programming Guide.

Copyright 2016-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 Answer Server 25.4

Topic Title: Modify the Question Parser Grammar