Grammar Engineering Frequently Asked Questions

I've added a rule to my grammar but the LKB doesn't seem to have found it. What's happening?

There are a few possibilities here. If the rule is not available through the View > Grammar Rule or View > Lexical Rule menus, then perhaps:

  1. You added a new rule type but did not instantiate the rule in rules.tdl, irules.tdl, or lrules.tdl. Without a specific entry, the type won't do anything.
  2. You added a new rule type, and through a cut-and-paste error, gave it the same name as an existing rule. If multiple entries have the same name, only the last one will be incorporated into the grammar.
  3. There is an error in your rule instance definition (e.g., the constraints on the rule instance are incompatible with those of a supertype) that the LKB flags only as a warning. In this case, a warning will appear in the LKB Top window, but the grammar will still load. You may have to scroll up to see the warning.

If the rule is available through View > Grammar Rule or View > Lexical Rule, but not firing when you expect it to in parsing (not visible in the parse chart), then most likely there is a bug in the rule. To try to locate the bug, try interactive unification.

Related topics


Back to FAQs page

Back to main course page

-- EmilyBender - 19 May 2005

Topic revision: r1 - 2005-05-20 - 05:14:54 - EmilyBender
 

This site is powered by the TWiki collaboration platformCopyright & by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
Privacy Statement Terms & Conditions